Skip to main content

Bbox & Polygon Type

Bbox & Polygon Format




PropertyFormatDescription
image_idnumber (non-negative integer)ID of the uploaded image
idnumber (non-negative integer)ID for identifying each annotation
category_idnumber (non-negative integer)ID of the registered category
model_metricstringModel 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 TypeDescription
Syntax errorThe 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 IDThere are duplicate annotation IDs within the same key.
Image ID does not existAn Image ID that was not uploaded exists.
Category ID does not existA category ID that has not been registered exists.
Negative number existsThere is a negative number in the Bbox or Polygon coordinates.
Invalid number of elementsThere are elements other than four (x, y, width, height) in the Bbox.
Uncompleted pairAn odd number of elements exists in the Polygon, so coordinate pairs cannot be formed.
Less than 3 pointsPThere are fewer than three coordinates in the Polygon.