> For the complete documentation index, see [llms.txt](https://docs.mindkosh.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindkosh.com/ja/python-sdk/mindkoshanotshon-1/obujekutofmatto.md).

# オブジェクト検出フォーマット

画像内のオブジェクト検出のためのMindkoshアノテーション形式の説明。

Mindkosh形式の画像注釈には、画像ごとにグループ化された注釈と、注釈の種類が含まれます。注釈の種類は、バウンディングボックス、ポリゴン、ポリライン、ポイント（キーポイント）です。{

```json
"annotations": {
    "version": "1.1",
    "meta": {
      "task": {
        "labels": [
          {
            "id": 11695,
            "name": "goal_post",
            "attributes": [
              {
                "id": 1757,
                "name": "occlusion",
                "mutable": true,
                "input_type": "checkbox",
                "default_value": "",
                "values": "true\nfalse"
              }
            ]
          }
        ]
      }
    },
    "images": [
      {
        "id": 0,
        "name": "psg_marseille_first_half_1228.png",
        "width": 1280,
        "height": 720,
        "boxes": [
          {
            "id": 3015293,
            "label": 11695,
            "source": "manual",
            "point_order": -1,
            "related_ids": [],
            "created_mode": "annotation",
            "created_by": "sdevgupta",
            "updated_by": "None",
            "xtl": "599.73",
            "ytl": "163.63",
            "xbr": "658.33",
            "ybr": "188.35",
            "rotation": "21.3",
            "z_order": 0,
            "attributes": [
              { "id": 1757, "name": "occlusion", "value": "true" }
            ],
          }
        ]
      }
    ]
  }
}

```

**プロパティの説明**

<table data-search="false"><thead><tr><th width="215"></th><th></th></tr></thead><tbody><tr><td><code>id</code></td><td>注釈ID。Mindkosh全体で一意です。</td></tr><tr><td><code>label</code></td><td>ラベルID。labelsセクションから参照できます</td></tr><tr><td><code>source</code></td><td>手動、インポート済み、または自動にできます</td></tr><tr><td><code>related_ids</code></td><td>この注釈に関連付けられた他のオブジェクトの注釈IDの配列</td></tr><tr><td><code>created_mode</code></td><td>この注釈がどの注釈モードで作成されたか。annotation、validation、qc、completedのいずれかです</td></tr><tr><td><code>created_by</code></td><td>注釈を作成したユーザー</td></tr><tr><td><code>updated_by</code></td><td>注釈を更新したユーザー</td></tr><tr><td><code>attributes</code></td><td>利用可能な場合は属性のキーと値のペア</td></tr><tr><td><code>rotation</code></td><td>回転したバウンディングボックスの向き。軸に平行なバウンディングボックスでは除外されます。</td></tr><tr><td><code>z_order</code></td><td>注釈のレイヤー番号。ポリゴンにのみ適用されます</td></tr></tbody></table>

#### 注釈の説明

<table><thead><tr><th width="150"></th><th></th></tr></thead><tbody><tr><td>boxes</td><td>ボックスの左上と右下の点で表されます。 <code>xtl, ytl, xbr, ybr</code></td></tr><tr><td>polygons</td><td>点のフラット配列 - x<sub>1,</sub> y<sub>1,</sub> x<sub>2</sub>, y<sub>2</sub>, x<sub>3</sub>, y<sub>3.</sub> 最後の点は最初の点と接続されます。</td></tr><tr><td>polylines</td><td>ポリゴンと同じです。最後の点は最初の点と接続されません。</td></tr><tr><td>points</td><td>点のフラット配列</td></tr><tr><td>cuboids</td><td>前面と背面の左上および右下の角で表されます。<br><code>xtl1, ytl1, xbr1, ybr1, xtl2, ytl2, xbr2, ybr2</code></td></tr></tbody></table>

#### 順序付きバウンディングボックス

順序付きバウンディングボックスでは、 `point_order` プロパティには1から8の間の値が設定されます。以下のように解釈できます。&#x20;

<table data-search="false"><thead><tr><th width="104">値</th><th>説明</th></tr></thead><tbody><tr><td>-1</td><td>バウンディングボックスは点の順序なしで作成されました。</td></tr><tr><td>1</td><td>回転していないバウンディングボックスの左上の角が最初の点です。その他の点は時計回りです。</td></tr><tr><td>2</td><td>回転していないバウンディングボックスの右上の角が最初の点です。その他の点は時計回りです。</td></tr><tr><td>3</td><td>回転していないバウンディングボックスの右下の角が最初の点です。その他の点は時計回りです。</td></tr><tr><td>4</td><td>回転していないバウンディングボックスの左下の角が最初の点です。その他の点は時計回りです。</td></tr><tr><td>5</td><td>回転していないバウンディングボックスの左上の角が最初の点です。その他の点は反時計回りです。</td></tr><tr><td>6</td><td>回転していないバウンディングボックスの右上の角が最初の点です。その他の点は反時計回りです。</td></tr><tr><td>7</td><td>回転していないバウンディングボックスの右下の角が最初の点です。その他の点は反時計回りです。</td></tr><tr><td>8</td><td>回転していないバウンディングボックスの左下の角が最初の点です。その他の点は反時計回りです。</td></tr></tbody></table>

#### トラック

トラックは、同じIDでフレーム間を追跡されるオブジェクトです。異なるフレームにおける同じオブジェクトは異なる注釈IDを持ちますが、同じ `track_id`.

プロパティ `occluded` occludedは、オブジェクトが同じトラックの一部であるものの、現在のフレームでは見えていないかどうかを示します。

さらに `related_track_ids` 特定の追跡オブジェクトに関連付けられた他のトラックの配列を説明します。
