Image Annotation
Structure
For each image, we store the annotations in a separate JSON file named image_name.image_format.json
with the following file structure:
Fields definitions:
name
- string - image namedescription
- string - (optional) - This field is used to store the text we want to assign to the image. In the labeling interface it corresponds to the 'data' filed.size
- stores image size. Mostly, it is used to get the image size without the actual image reading to speed up some data processing steps.width
- image width in pixelsheight
- image height in pixels
tags
- list of strings that will be interpreted as image tagsobjects
- list of objects on the image which can be of different types (point, rectangle, polygon, line, bitmap, etc.)
Full image annotation example with objects and tags
Example:
How the Label Group Is Described in Project Files
Project Meta
In the tags section of project
meta.json
, you must include a tag named@label-group-id
with the following properties:name
:"@label-group-id"
value_type
:"any_string"
(allows flexible naming for groups)applicable_type
:"objectsOnly"
(ensures the tag is only assigned to labeled objects)
This tag is essential for defining and managing label groups within the project, allowing grouped labels to be linked and organized effectively.
Image Annotation
To add an object to a label group, you must assign the
@label-group-id
tag with the corresponding group name as its value.This ensures that all objects with the same tag value are recognized as part of the same group.
Grouped labels will be visually linked and managed together in the annotation interface.
Last updated
Was this helpful?