Bbox & Polygon Type
Bbox & Polygon Format
- The JSON format follows the COCO dataset format by default.
Property | Format | Description |
---|---|---|
image_id | number (non-negative integer) | ID of the uploaded image |
id | number (non-negative integer) | ID for identifying each annotation |
category_id | number (non-negative integer) | ID of the registered category |
model_metric | string | Model metric information per annotation |
segmentation | [[x1, x2, y1, y2, … xn, yn],…,[x1, x2, y1, y2, … xn, yn]] | Coordinate information for polygon-type categories |
bbox | [x1, y1, width, height] | Coordinate information for bbox-type categories |
Format Example
[
{
"image_id": 973,
"id": 0,
"category_id": 1,
"model_metric": "confidencescore:0.32",
"segmentation": [
[
334.9532710280374,
172.26168224299064,
471.32710280373834,
852.9345794392523,
...
511.99999999999994,
851.7383177570093,
447.4018691588785,
539.5140186915888
],
...
],
"bbox": []
},
...
{
"image_id": 973,
"id": 1931,
"category_id": 3,
"model_metric": "confidencescore:0.17",
"segmentation": [],
"bbox": [
334.9532710280374,
172.26168224299064,
177.04672897196252,
680.6728971962616
]
}
]
Invalid Code
Error Type | Description |
---|---|
Syntax error | The code is not in JSON syntax, ID is not a non-negative integer, or the template has an invalid key such as Bbox or ModelMetric. |
Dupliacated Annotation ID | There are duplicate annotation IDs within the same key. |
Image ID does not exist | An Image ID that was not uploaded exists. |
Category ID does not exist | A category ID that has not been registered exists. |
Negative number exists | There is a negative number in the Bbox or Polygon coordinates. |
Invalid number of elements | There are elements other than four (x, y, width, height) in the Bbox. |
Uncompleted pair | An odd number of elements exists in the Polygon, so coordinate pairs cannot be formed. |
Less than 3 points | PThere are fewer than three coordinates in the Polygon. |