> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools.md).

# アノテーションツール

Workbenchで使えるアノテーションツール（バウンディングボックス、ポリゴン、マスクブラシ、ポリライン、キーポイント、スケルトン、キューボイド、Magic Touch）の選び方と、データタイプ別の対応状況、各ツールのガイドへのリンクをまとめています。

Workbenchにはさまざまな描画ツールがあります。各ツールは1種類の形状を作成し、オントロジーの各クラスには使用する形状が決まっています。クラスを選ぶと、Workbenchがそのクラスに合ったツールに切り替えます。

![ロボットのキッチンシーン。ボックス、引き出しのポリゴン、グリッパーの軌跡を示すライン、エスプレッソマシンのキューボイドでラベル付けされている](https://content.gitbook.com/content/VVjRRo2Aj63RKvkKs7pK/blobs/9P1KBfvbVNiYWMCnlaWL/tools-bbox-hero.webp)

## どのツールを使えばよいか <a href="#which-tool-should-i-use" id="which-tool-should-i-use"></a>

| 必要なもの                   | 使うツール                                                                                                               | キー  |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------- | --- |
| 物体の位置を素早く               | [Bounding box](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/bounding-box.md)               | `B` |
| 正確な輪郭（後から修正しやすい）        | [Polygon](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/polygon.md)                         | `P` |
| 物体のすべてのピクセルを塗る          | [Mask brush](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/mask-brush.md)                   | `F` |
| グリッパーの軌跡やケーブルのような経路やエッジ | [Polyline](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/points-polylines-and-skeletons.md) | `L` |
| 把持点や角などの単一の位置           | [Keypoint](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/points-polylines-and-skeletons.md) | `U` |
| 関節をつないだ姿勢               | [Skeleton](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/points-polylines-and-skeletons.md) | `J` |
| 写真内の箱型の物体の位置、サイズ、奥行き    | [Cuboid](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/cuboid.md)                           | `N` |
| 1回のクリックでAIが作成する輪郭の下書き   | [Magic Touch](https://docs.unitlab.ai/documentation/ja/auto-labeling/detect-anything-sam-1-sam-3.md)                | `M` |
| 表示を移動し、保存済みの形状を選択・編集する  | [Pan, select and edit](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/select-and-edit.md)    | `V` |

{% hint style="info" %}
ポリゴンとマスクで迷ったら、後から点を動かして輪郭を整えたい場合は**Polygon**を選びます。モデルがピクセル単位の情報を必要とし、物体の境界があいまいで不規則な場合は**Mask**を選びます。
{% endhint %}

## データタイプ別のツール <a href="#tools-by-data-type" id="tools-by-data-type"></a>

| ツール                        | 画像 | 動画 | 医療画像 | PDF | 地理空間・病理    |
| -------------------------- | -- | -- | ---- | --- | ---------- |
| Bounding box               | ✓  | ✓  | ✓    | ✓   | ✓          |
| Polygon                    | ✓  | ✓  | ✓    | ✓   | ✓          |
| Polygon **Slice**モード       | ✓  |    |      |     | ✓          |
| Mask brush                 | ✓  | ✓  | ✓    | ✓   | ✓（ベクターマスク） |
| Polyline、Keypoint、Skeleton | ✓  | ✓  | ✓    | ✓   | ✓          |
| Cuboid                     | ✓  | ✓  |      | ✓   | ✓          |
| Auto select                | ✓  | ✓  | ✓    | ✓   | ✓          |

動画では、1フレームで描いた形状をクリップ全体で物体に追従させられます。1回描いてから**Tracking**を使うと、ほかのフレームが埋まります。

![48フレームのロボットクリップでトラッキングされたグリッパーのポリゴン。タイムラインのトラックの全フレームにキーフレームがある](https://content.gitbook.com/content/VVjRRo2Aj63RKvkKs7pK/blobs/OIdGQrQx5227ieAjMCSJ/tools-video-tracked-polygon.webp)

LiDARシーンには専用の3Dツールがあります。[LiDARアノテーション](https://docs.unitlab.ai/documentation/ja/annotations/lidar-annotation.md)を参照してください。テキスト、音声、時系列データでは、それぞれのページで説明している範囲・区間ツールを使います。

## すべての形状で使えるツール <a href="#tools-that-work-with-every-shape" id="tools-that-work-with-every-shape"></a>

* [**Auto select**](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/auto-select.md)（`A`）: 保存済みの形状にポインターを合わせると、ツールを切り替えずに編集できます。
* [**ツール設定**](https://docs.unitlab.ai/documentation/ja/annotations/workbench-settings.md): ハンドルのサイズ、共有エッジ、ラベル表示、品質チェック。
* **元に戻す・やり直す**: `Ctrl` + `Z` と `Ctrl` + `Y`（Macでは `Cmd`）。
* [**キーボードショートカット**](https://docs.unitlab.ai/documentation/ja/annotations/annotation-tools/keyboard-shortcuts.md): すべてのキーを1つの一覧にまとめています。Workbenchで`H`を押すと、開いているファイルで使えるキーが表示されます。

関連ページ: [アノテーションツールの選び方](https://docs.unitlab.ai/documentation/ja/annotations/choose-an-annotation-tool.md) · [クラスとアノテーションタイプ](https://docs.unitlab.ai/documentation/ja/ontologies/classes-and-annotation-types.md) · [Magic TouchとDetect all objects](https://docs.unitlab.ai/documentation/ja/auto-labeling/detect-anything-sam-1-sam-3.md)

<sub>ロボットの画像:</sub> [<sub>DROID dataset</sub>](https://droid-dataset.github.io/) <sub>（Khazatsky et al., 2024）、CC BY 4.0。</sub>
