Our annotations are stored as json files and have the following format:
{
images: [
{
id ... unique image ID
file_name ... path to image, relative to a given base directory (see above)
},
...
],
descriptions: [
{
id ... unique description ID
text ... the text of the object description
image_ids ... list of image IDs for which this description is part of the label space
anno_info ... some metadata about the description
},
...
],
annotations: [ # Only for val sets and result files. Not given in test set annotations!
{
id ... unique annotation ID
image_id ... the image id this annotation belongs to
bbox ... the bounding box coordinates of the object (x,y,w,h)
description_ids ... list of description IDs that refer to this object
},
...
]
}