> 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/use-roboflow-annotate.md).

# 画像にアノテーションを付ける

Roboflow dashboard の Assign または Dataset ページから画像を選択すると、ラベリングインターフェースにアクセスできます。

ラベリングインターフェースの右側には toolbar があります。toolbar には、画像のアノテーションに使える多くの機能があります。

このドキュメントでは、以下の機能の使い方を説明します:

* Drag and select
* Bounding box annotation tool
* Polygon annotation tool
* Smart polygon
* Label assist
* Zoom tool

### Drag and Select

手のアイコンで表されるこの機能では、個々のアノテーションを選択、編集、ドラッグできます。

* **Single-click** して既存の bounding box を選択します。選択すると、四隅と各辺に表示される白い円形ハンドルを使って bounding box のサイズを変更できます。あるいは、class editor を使って box の label を変更することもできます。
* **Box をドラッグして** 移動します。
* **背景をドラッグして** パンします。
* **背景をクリックして** すべての box の選択を解除します。

<div align="center"><figure><img src="/files/55026ace69668037ec5ab1e724415193d69cc4bf" alt=""><figcaption><p>Drag Tool (D) の選択</p></figcaption></figure></div>

### **Bounding Box Annotation Tool**

bounding box annotation tool（長方形の box アイコンで表されます）を使うと、新しい bounding-box アノテーションを描画できます。このモードでは、描画を開始する位置を決めるのに役立つ十字カーソルが表示されます。

画像上でクリックしてドラッグし、新しいアノテーションを作成してから、Class Selector でその label を選択します。

<figure><img src="/files/9efe8a8a2d290103a3c3cab972d97a71c506e629" alt=""><figcaption><p>Bounding Box Tool (B) の選択</p></figcaption></figure>

### Polygon Annotation Tool

polygon annotation tool を使うと [新しい polygon アノテーションを描画できます](https://blog.roboflow.com/polygon-annotation-labeling/)。このモードでは、描画を開始する位置を決めるのに役立つ十字カーソルが表示されます。

対象物の周囲の画像上をクリックして各頂点を配置します。polygon を閉じるには、最初の頂点をもう一度クリックするか、最後の頂点をダブルクリックしてから、Class Selector でその label を選択します。

<figure><img src="/files/54f8e261254fd655a782a6649f23f42bb5a37475" alt=""><figcaption><p>Polygon Tool (P) の選択</p></figcaption></figure>

### Brush Annotation Tool

brush annotation tool を使うと、画像内の関心領域にピクセル単位で正確な mask アノテーションを塗ることができます。キャンバス上の brush controls を使って brush サイズを調整し、Add モードと Subtract モードを切り替えられます。Add は現在の mask に追加し、Subtract は現在の mask から消去します。

\
mask annotations は、輪郭や box ではなく、ピクセルごとの領域として objects を表します。これにより、特に不規則な構造や細かな構造（例: 髪、葉、透明な objects）をより正確に形状として捉えられ、instance や semantic segmentation models の学習に理想的です。デフォルトでは、各 masked region の周囲に bounding box が表示されるため、object の全体範囲を把握しやすく、レビューや編集時に操作しやすくなります。Display Options パネルの "Mask Boxes" スイッチを使えば、この表示をオフにして mask の塗りつぶしだけを表示できます。

\
mask に含めたい、または除外したい領域を画像上でクリックしてドラッグし、Class Selector を使ってその mask region の label を割り当てるか変更します。

<figure><img src="/files/cb021720c0cdbfbe7e6b1becb0a0477c26dfdeac" alt=""><figcaption><p>Brush Tool (U) の選択</p></figcaption></figure>

### Smart Polygon

**Smart Polygon** 新しい Smart Polygon アノテーションを描画できます。

このモードでは、新しい関心領域（新しい label）を選択しているときは緑の点が表示され、関心領域から除外する領域（label を付けたり polygon で囲みたくない object や image の一部）を選択しているときは赤い点が表示されます。また、Convex Hull、Smooth、Complex の設定で polygon を調整するオプションもあります。

Smart Polygon は特に (Instance and Semantic) Segmentation projects に有用ですが、 [Object Detection models ではパフォーマンスが向上する場合があります](https://blog.roboflow.com/polygons-object-detection/) Roboflow で Smart Polygons を使ってラベリングする際に。

<figure><img src="/files/e50c73460e67939dd21525c8cc1c3b4fbc371109" alt=""><figcaption><p>Smart Polygon (S) Tool の選択</p></figcaption></figure>

### **Label Assist**

[**Label Assist**](/roboflow/roboflow-jp/annotate/ai-labeling/model-assisted-labeling.md) public model または version の predictions を使用し、 [Roboflow Train で学習した](/roboflow/roboflow-jp/xue-xi/train.md) アノテーション中に bounding box label を自動提案します。

<figure><img src="/files/60b21d26e519d064642cc674f1a226cee1b6b2ca" alt="Label Assist Tool selection"><figcaption></figcaption></figure>

### **Null としてマーク**

Mark null (Null annotation) は、背景、つまり null images の「ラベリング」に使用します。この設定は、画像からすべての annotations を消去したり、画像を Unannotated としてマークしたりするためにも使えます。null annotations について詳しくは、こちらのガイド「[Missing アノテーションと Null アノテーションの違い](https://blog.roboflow.com/missing-and-null-image-annotations/)".

<figure><img src="/files/5b7f88ef6034f4f207cea565fc2e08bd4e719a97" alt=""><figcaption><p>Mark Null (N) Tool の選択</p></figcaption></figure>

### **Undo、Redo、Repeat Annotations**

Bounding Box (B)、Polygon (P)、または Smart Polygon (S) モードでは:

* **Undo** 前の操作を元に戻します。
* **Redo** 元に戻した操作をやり直します。
* **Repeat Previous** 最後にアノテーションした画像と同じ位置にある image 上の label を再適用します

### Multi-Select と Context Menu

複数のアノテーションを一度に選択し、context menu から一括操作を適用できます。複数選択するには、 **Shift** を押しながらクリックするか、キャンバス上で選択矩形をドラッグします。複数選択が有効な状態で右クリックするか、選択中の任意のアノテーションの three-dot menu を開くと context menu が表示されます。

context menu は、現在の選択範囲にあるすべてのアノテーションに対して操作を適用するため、多くのアノテーションを一度に変換、並べ替え、または結合できます。

#### 利用可能なアクション

* **Convert to Box** — 選択したすべての polygon または mask を bounding box に変換します。
* **Convert to Polygon** — 選択したすべての box または mask を polygon に変換します。
* **Convert to Mask** — 選択したすべての box または polygon を pixel mask に変換します。
* **Convert to Smart Mask** — 各選択項目に対して Smart Polygon を再実行し、より精緻な mask を生成します。
* **Merge Masks** — 選択したすべての mask アノテーションを 1 つの mask アノテーションに結合します。結合された mask は、選択した masks のすべての pixels の和集合を取り、主選択の label と color を引き継ぎます。これは、同じ基礎 object を表す、複数の離れた mask region をつなげるのに便利です。たとえば、遮蔽物で分割された object の 2 つの半分などです。
* **前面へ移動** / **前へ移動** / **背面へ移動** / **後ろへ移動** — 他の要素に対する、選択した各アノテーションの重なり順を並べ替えます。

{% hint style="info" %}
**Merge Masks** 現在の選択範囲内のすべてのアノテーションが mask の場合にのみ、context menu に表示されます。選択したアノテーションの中に box または polygon が 1 つでもある場合は、先にそれを mask に変換してから（ **Convert to Mask**）結合します。
{% endhint %}

### Class Selection

画像が選択されると、 **Class Selector** が表示されます。ここには、bounding box の label を選ぶための次のオプションがあります:

![Class Selector](/files/933c17187500aaa2f2317e02b69755e46e826397)

* **Textfield** 新しい class を作成するか、既存の class を絞り込みます。
* **Buttons** 変更を保存するか破棄します。
* **Class List** dataset 内の既存 class の一覧（text field で絞り込まれ、アクティブな項目は紫で強調表示されます）と、入力した text が既存 class に一致しない場合は、時々 "Create class" オプションが表示されます。

### Zoom Tool

画面左下にある zoom tool です。

* ズームイン・ズームアウトして、一度により多くの画像を画面に収めたり、より近くで見て細かく編集したりできます。また、ズームを指定した割合に「ロック」するオプションや、ズームをリセットして画像全体を Annotation Tool の表示領域内に収めるオプションもあります。
* 「*Zoom Lock*」オプションを選ぶと、すべての画像がこの zoom level で表示されることに注意してください。Zoom Lock を解除するには、選択を解除するか、ロックを解除します。

<figure><img src="/files/5622b8ff2c0301dca1bfb3d55a1d3b72951a0775" alt=""><figcaption><p>Zoom Tool</p></figcaption></figure>

### Annotation List

Annotations（略して *Annots* と dashboard では表記）には、画像内に存在する class と存在しない class、各 box の色、label の重なり順が表示されます。Annotations drawer には Tags も含まれており、dataset 内の画像を整理、絞り込み、並べ替えするのに役立ちます。

<figure><img src="/files/05dcdd10363ec05d8a3a2cd8c03bd6fe77ea04bb" alt="" width="324"><figcaption><p>Annotations（Annots）Sidebar</p></figcaption></figure>

### **Image Attributes**

Attributes には、画像の dimensions、最終更新時刻、およびその画像がこの dataset の [training, validation, or test set](https://blog.roboflow.com/train-test-split/).

<figure><img src="/files/6448bac0b41dba0ca971bf12496c5c4d2e73266e" alt="" width="489"><figcaption><p>Attributes Sidebar</p></figcaption></figure>
