To extract the annotations metadata from the images then you will find it in the following format.
This is stored in the EXIF as a JSON string in the image caption/description field.
Root Object #
All the fields are optional.
Key | Type | Description |
---|---|---|
metadata | Object | See below for a description of the metadata object keys. |
imageLabel | String | A string label that maps to the label’s classification field in ToolZ. This is not the same string that is used for display. This string needs to be unique within ToolZ. |
annotations | Array | An array of annotation objects. See below for a description of the annotation keys. |
Metadata Object #
Key | Type | Description |
---|---|---|
isTagged | Boolean | Indicates if the file is marked as tagged. This is an open interpretation. |
Annotation Object #
All the fields are mandatory.
Key | Type | Description |
---|---|---|
uniqueIdentifier | String | A UUID that uniquely identifies the annotation. |
label | String | A string label the maps to the label’s classification field in ToolZ. This is not the same string that is used for display. This string needs to be unique within ToolZ. |
coordinates | Object | See below for a description of the coordinate object |
Coordinate Object #
All the fields are mandatory.
Key | Type | Description |
---|---|---|
x | Number | The centre x coordinate for the box. |
y | Number | The centre y coordinate for the box. |
width | Number | The width of the box. |
height | Number | The height of the box. |