JSON Format Export
If using Windows, we recommend using 7-Zip to unzip the exported labels.
Label Coordinates
In the JSON format, label coordinates are normalized to be between 0 and 1. This means that the corners of the frame or image correspond to the coordinates (1,1), (1,0), (0,0), (0,1) regardless of frame dimensions.
To get the pixel values of normalized coordinates:
- The
x
andh
coordinates of a label should be multiplied by the pixel width of the frame or image. - The
y
andw
coordinates of a label should be multiplied by the pixel height of the frame or image.
Format of Exported Labels
The last_edited_by
and last_edited_at
fields are updated only when the label or its nested attributes are modified in the Label Editor. If the SDK is used to update the label, these fields must be updated manually.
The tables below provide descriptions of all values contained JSON format exports.
data_type
is deleted
, while image groups and image sequences only contain a single data_unit
.Single Images
The export contains a list of JSON objects, with each JSON object representing a single data unit and containing detailed information for all exported labels.
The example below describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The Dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “video” for videos |
is_image_sequence | ”true” when the data unit is an image sequence | Always “null” for images |
video_link | Contains a private cloud URL for videos | Always “null” for images |
data_units | List of all files the data unit is composed of | Details of the export information for `data_units“ can be found below. |
object_answers | All the attributes in this data unit | The object attributes are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for this data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
Image Groups & Image Sequences
The export contains a list of JSON objects, with each JSON object representing a single image group or image sequence, and containing detailed information for all exported labels.
The example below describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “img_group” for image groups and image sequences |
is_image_sequence | true when the data unit is an image sequence | false for all other types of data, including image groups. This is what distinguishes image groups and image sequences in your export |
video_link | Contains a link to file storage location if file is a video | Always “null” for image groups and image sequences |
data_units | List of all files the data unit is composed of | Details of the export information for data units can be found below. |
object_answers | All the attributes in this data unit | The object attributes are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for this data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
Videos
The export contains a list of JSON objects, with each JSON object representing a single data unit and containing detailed information for all exported labels.
The example below describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The Dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “video” for videos |
is_image_sequence | ”true” when the data unit is an image sequence | Always “null” for videos |
video_link | Link to the video saved on your private cloud | Always “null” for all other file types |
data_units | List of all files the data unit is composed of | Details of the export information for `data_units“ can be found below. |
object_answers | All the attributes in this data unit | The object attributes are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for this data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
DICOM
The export contains a list of JSON objects, with each JSON object representing a single data unit and containing detailed information for all exported labels.
The following example describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “dicom” in a DICOM series |
is_image_sequence | ”true” when the data unit is an image sequence | Always “null” for a DICOM series |
video_link | Link to the video or image sequence | Always “null” for a DICOM series |
data_units | List of all files the data unit is composed of | Details of the export information for `data_units“ can be found below. |
object_answers | All the object attributes in this data unit | The object attribute are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for the data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
Audio
The export contains a list of JSON objects, with each JSON object representing a single data unit and containing detailed information for all exported labels.
The example below describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The Dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “video” for videos |
is_image_sequence | ”true” when the data unit is an image sequence | Always “null” for images |
video_link | Contains a private cloud URL for videos | Always “null” for images |
data_units | List of all files the data unit is composed of | Details of the export information for `data_units“ can be found below. |
object_answers | All the attributes in this data unit | The object attributes are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for this data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
Text
The export contains a list of JSON objects, with each JSON object representing a single data unit and containing detailed information for all exported labels.
The example below describes all the keys for a single exported data unit.
Key | Description | Notes |
---|---|---|
label_hash | The Label Row hash | The ‘hash’ represents a unique identifier |
created_at | Time and date the label was created | |
last_edited_at | Time and date the label was last edited | |
dataset_hash | The Dataset’s hash | The ‘hash’ represents a unique identifier |
data_type | The data unit’s file format | Always “video” for videos |
is_image_sequence | ”true” when the data unit is an image sequence | Always “null” for images |
video_link | Contains a private cloud URL for videos | Always “null” for images |
data_units | List of all files the data unit is composed of | Details of the export information for `data_units“ can be found below. |
object_answers | All the attributes in this data unit | The object attributes are identified using their hash |
classification_answers | All the classifications in a particular data unit | The classification labels are identified using their hash |
object_actions | The number of states a dynamic attribute can be in. | A change in state occurs each time the attribute answer changes. The objectHash within the object_actions is the attribute answer’s ID. |
label_status | Indicates whether the data unit has been labeled. | |
export_history | Contains a record of the export history for this data unit | Exporting labels to confirm export history generates an export history entry. |
export_hash | The hash for this particular export instance | The ‘hash’ represents a unique identifier |
exported_at | The date and time when a particular export instance took place. |
Ontology Shapes
Exports contain the Ontology shape coordinates used to create the label.
Exporting Bitmasks
Bitmask labels are exported as rleString
s. See our SDK documentation to learn how to decode an rleString
.
Exporting Labels using the SDK
Go here to learn how to export JSON files from Encord’s Python SDK. Reach out to us to if you need to export COCO labels.
Label Branches
The branch associated with the labels is specified using the branch_name
key.
The main branch is always displayed first and is identified by the following value:
Was this page helpful?