画像プロジェクトの入出力フォーマットを説明します。
各フォーマット内のattributes部分については共通フォーマットをご参照ください。
points
は [x1, y1, x2, y2]
の4点で表現します。画像の左上がx座標、y座標の原点です。rotation
は -180°
から 180°
までの値が入ります。rotation > 0
が時計回りになります。[
{
"id": "3e485132-d1f4-4947-b256-f88cf490a340",
"name": "car01.png",
"status": "registered",
"externalStatus": "registered",
"url": "Signed URL of your image",
"width": 799,
"height": 500,
"secondsToAnnotate": 0,
"annotations": [
{
"id": "ddc87604-9867-407b-a849-fa5319e17003",
"type": "bbox",
"title": "車体",
"value": "body",
"color": "#D10069",
"attributes": [
{
"type": "text",
"name": "車体",
"key": "body",
"value": "セダン" // input value
},
{
"type": "select",
"name": "サイズ",
"key": "size",
"value": "small" // selected value
}
],
"points": [
214, // top-left x point
384, // top-left y point
309, // bottom-right x point
439 // bottom-right y point
],
"rotation": 0, // betwen -180° and 180°
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
},
{
"id": "a6e2ff20-f54f-4e83-b6ac-19aabc5889ea",
"type": "bbox",
"title": "タイヤ",
"value": "tire",
"color": "#4f8ff1",
"attributes": [],
"points": [
254, // top-left x point
384, // top-left y point
309, // bottom-right x point
439 // bottom-right y point
],
"rotation": 0,
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
}
],
"relations": [
{
"start": "ddc87604-9867-407b-a849-fa5319e17003",
"end": "a6e2ff20-f54f-4e83-b6ac-19aabc5889ea"
}
],
"tags": [],
"assignee": null,
"reviewer": null,
"approver": null,
"externalAssignee": null,
"externalReviewer": null,
"externalApprover": null,
"createdAt": "2021-08-15T15:26:36.201Z", // ISO8601
"updatedAt": "2021-08-15T15:26:36.201Z" // ISO8601
}
points
は [x, y, 半径]
の3点で表現されます。points
は [中心点 x, 中心点 y, x 半径, y 半径、回転角]
の5点で表現されます。[
{
"id": "3e485132-d1f4-4947-b256-f88cf490a340",
"name": "car01.png",
"status": "registered",
"externalStatus": "registered",
"url": "Signed URL of your image",
"width": 799,
"height": 500,
"secondsToAnnotate": 0,
"annotations": [
{
"type": "circle",
"title": "車体",
"value": "body",
"color": "#D10069",
"attributes": [
{
"type": "text",
"name": "車体",
"key": "body",
"value": "セダン" // input value
},
{
"type": "select",
"name": "サイズ",
"key": "size",
"value": "small" // selected value
}
],
"points": [
214, // x point
384, // y point
50, // radius
],
"rotation": 0,
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
},
{
"type": "ellipse",
"title": "車体",
"value": "body",
"color": "#D10069",
"attributes": [
{
"type": "text",
"name": "車体",
"key": "body",
"value": "セダン" // input value
},
{
"type": "select",
"name": "サイズ",
"key": "size",
"value": "small" // selected value
}
],
"points": [
214, // x point
384, // y point
50, // x radius
25, // y radius
1 // rotation
],
"rotation": 0,
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
}
],
"tags": [],
"assignee": null,
"reviewer": null,
"approver": null,
"externalAssignee": null,
"externalReviewer": null,
"externalApprover": null,
"createdAt": "2021-08-15T15:26:36.201Z", // ISO8601
"updatedAt": "2021-08-15T15:26:36.201Z" // ISO8601
},
{
"id": "2e485132-d1f4-4947-b256-f88cf490a340",
"name": "car02.png",
"status": "registered",
"externalStatus": "registered",
"url": "Signed URL of your image",
"width": 799,
"height": 500,
"secondsToAnnotate": 0,
"annotations": [
],
"tags": [],
"assignee": null,
"reviewer": null,
"approver": null,
"externalAssignee": null,
"externalReviewer": null,
"externalApprover": null,
"createdAt": "2021-08-15T15:26:36.201Z", // ISO8601
"updatedAt": "2021-08-15T15:26:36.201Z" // ISO8601
},
]
points
は各頂点のX座標, Y座標の配列となります。[x1, y1, x2, y2, …]
[
{
"id": "f639e3a2-fb01-451f-a12a-b71867920bef",
"name": "car01.jpg",
"status": "registered",
"externalStatus": "registered",
"url": "Signed URL of your image",
"width": 4896,
"height": 3264,
"secondsToAnnotate": 0,
"annotations": [
{
"type": "polygon",
"title": "Body",
"value": "body",
"color": "#69D100",
"attributes": [],
"points": [
858.02, // start x point
1999.16, // start y, point
960.18, // x2
1699.05, // y2 ...
1170.9,
1437.24,
1221.99, // end x point
1041.33, // end y point
],
"rotation": 0,
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
}
],
"tags": [],
"assignee": null,
"reviewer": null,
"approver": null,
"externalAssignee": null,
"externalReviewer": null,
"externalApprover": null,
"createdAt": "2021-09-13T17:47:31.326Z", // ISO8601
"updatedAt": "2021-09-13T17:47:31.326Z" // ISO8601
}
]
points
は各ポイントのX座標, Y座標の配列となります。[x1, y1, x2, y2, …]
[
{
"id": "f639e3a2-fb01-451f-a12a-b71867920bef",
"name": "car01.jpg",
"status": "registered",
"externalStatus": "registered",
"url": "Signed URL of your image",
"width": 4896,
"height": 3264,
"secondsToAnnotate": 0,
"annotations": [
{
"type": "polyline",
"title": "Body",
"value": "body",
"color": "#69D100",
"attributes": [],
"points": [
858.02, // start x point
1999.16, // start y point
960.18,
1699.05,
1170.9,
1437.24,
1221.99, // end x point
1041.33, // end y point
],
"rotation": 0,
"keypoints": [], // pose estimation project's points
"confidenceScore": -1 // scored by auto annotation ("-1" means you manually annotated)
}
],
"tags": [],
"assignee": null,
"reviewer": null,
"approver": null,
"externalAssignee": null,
"externalReviewer": null,
"externalApprover": null,
"createdAt": "2021-09-13T17:47:31.326Z", // ISO8601
"updatedAt": "2021-09-13T17:47:31.326Z" // ISO8601
}
]