COCO JSON
Folder structure
train
annotations.json
image1.jpg
image2.jpg
image(N).jpg
valid
annotations.json
image3.jpg
image4.jpg
image(N+1).jpg
test
annotations.json
image5.jpg
image(N+2).jpg
Labels file
The bbox field is composed of the following 4 numbers in order.
X value of the top left point of the bounding box.
Y value of the top left point of the bounding box.
Width of the bounding box.
Height of the bounding box.
einstein.jpg
{
"categories":[
{
"id":0,
"name":"eye",
"supercategory":"none"
},
{
"id":1,
"name":"nose",
"supercategory":"none"
},
{
"id":2,
"name":"mouth",
"supercategory":"none"
},
{
"id":3,
"name":"face",
"supercategory":"none"
}
],
"images":[
{
"id":0,
"file_name":"einstein.jpg",
"height":416,
"width":416
}
],
"annotations":[
{
"id":0,
"image_id":0,
"category_id":0,
"bbox":[
687,
579,
65,
38
]
},
{
"id":1,
"image_id":0,
"category_id":0,
"bbox":[
498,
575,
81,
42
]
},
{
"id":2,
"image_id":0,
"category_id":1,
"bbox":[
586,
579,
122,
198
]
},
{
"id":3,
"image_id":0,
"category_id":2,
"bbox":[
563,
835,
153,
48
]
},
{
"id":4,
"image_id":0,
"category_id":3,
"bbox":[
347,
324,
453,
660
]
}
]
}
Last updated
Was this helpful?