Skip to main content

Download Annotations

After annotations are ordered for a scene they will be produced, reviewed and quality-controlled within the Kognic Platform.

Once the annotations are made delivery-ready and are exported, they can be downloaded in the OpenLABEL format.

Annotations for a Scene

from kognic.io.client import KognicIOClient

client = KognicIOClient()

for annotation in client.annotation.get_annotations_for_scene(scene_uuid=scene_uuid):
openlabel_dict = annotation.content
# ...

This method returns all delivered annotations in the form of Annotation objects, containing the OpenLABEL json, using a Scene UUID.

Annotations for a Project or Batch

from kognic.io.client import KognicIOClient

client = KognicIOClient()

# Get generator with annotations
annotations = client.annotation.get_project_annotations(project="project-identifier",
batch="batch-identifier",
annotation_type="annotation-type")
for annotation in annotations:
openlabel_dict = annotation.content
# ...

This example fetches annotations for an entire project or batch. This retrieves Annotation objects for all delivered annotations for the given project, batch and annotation_type.