> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/annotate/ai-labeling/enhanced-smart-polygon-with-sam/smart-polygon.md).

# Smart Polygon (Legacy)

{% hint style="info" %}
Roboflow では現在、 [強化された Smart Polygon の体験を提供しています](/roboflow/roboflow-jp/annotate/ai-labeling/enhanced-smart-polygon-with-sam.md) Segment Anything Model (SAM) を搭載しています。
{% endhint %}

Smart Polygon は、Roboflow Annotate で利用できるアノテーションアシスタントです。Smart Polygon を使うと、画像内のオブジェクトに対するポリゴンアノテーションを生成できます。

## Smart Polygon の使い方

Smart Polygon 機能を使用するには、ラベリングツールバーで Smart Polygon をクリックします（ショートカットキー： `S`).

<figure><img src="https://lh5.googleusercontent.com/tJUGkNohp8gwqdaYO7U1nX7AKKVbi3sJidr0bWOaa4l6uLm7bCpqlKCwnSRwBCi7rQgAsVBaCu_nalTkcNvCPhtaOyciZrdNvEP0jadTq4aJS8YiB7Tytfr-FHEm6qDuTpI03sxBEviF1nXsMOYKXqz6vMPhv3rWyNre-I8-EngFL6OA6qbggFB10w" alt=""><figcaption><p>アノテーションツールバー内の Smart Polygon</p></figcaption></figure>

次に、ラベルを付けたいオブジェクトの中央をクリックすると、Smart Polygon がそのオブジェクトに初期ラベルを適用します。

<figure><img src="/files/de2f80143d582de825356bff9461b5846b555b54" alt=""><figcaption><p>紫のアウトラインは、1 回のクリックで生成された Smart Polygon アノテーションです。</p></figcaption></figure>

これにより、裏側の機械学習モデルが、オブジェクトの形状を提案します。

ターゲットのポリゴンは 1 回のクリックだけで正確に予測される場合があり、Enter キーを押してからオブジェクトのクラスを選択することで、次のオブジェクトに進めます。

ポリゴンをオブジェクトにより正確に合わせるには、強調表示されるべきではないオブジェクト上の領域をクリックします。これらは負のポイントとして追加され、アノテーションツールでは小さな赤いボックスで示されます。

<figure><img src="/files/8528e00f2a2c0a64cbb78f7d9b36e0826eea44c3" alt="" width="375"><figcaption><p>赤いポイントで、以前はポリゴンの一部だったが現在は削除された領域を示したポリゴン。</p></figcaption></figure>

アノテーションツール左上の Smart Polygon オプションを使うと、Convex Hull、Smooth、Complex ラベルを切り替えて、ラベルの頂点数を選べます。間違えた場合は、配置したポイントを元に戻すこともできます。

<figure><img src="https://blog.roboflow.com/content/images/2022/09/Screen-Shot-2022-09-26-at-4.19.59-PM.png" alt=""><figcaption><p>Smart Polygon オプション（Convex Hull、Smooth、Complex ラベル）</p></figcaption></figure>

## セグメンテーションレイヤーを可視化する

Smart Polygon は、セマンティックセグメンテーションデータのラベリングにも役立ちます。モデルをどのように学習させたいかに合わせてマスクが適切に重なるよう、オブジェクトの z-index を正しく順序付けてください。重なりは、次を使って可視化できます。 `Layers` タブはサイドバーにあります。これにより、ラスタライズ後のセグメンテーションマスクがどのように見えるかを理解しやすくなります。

その `Layers` タブはすべての Roboflow プロジェクトタイプで利用できます。並び順を変えずにバウンディングボックスを編集するには `Layers`、編集したい Layer/annotation をその `Layers` タブでクリックし、その後で編集してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/annotate/ai-labeling/enhanced-smart-polygon-with-sam/smart-polygon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
