Annotation

Box21 annotation

An asset can have different annotations, eg bounding box and keypoint


source

Box21Annotation

 Box21Annotation (asset_id:int, id:int, certainty:float, label_id:int,
                  project_id:int, validated:bool)

Abstract class that represents a Box21 Annotation

Type Details
asset_id int related asset id in Box21
id int unique id in Box21
certainty float certainty of annotation
label_id int related label id in Box21
project_id int related project id in Box21
validated bool whether the annotation is validated

source

Annotation

 Annotation (label_name:str, certainty:float)

Abstract class that represents an Annotation

Type Details
label_name str label name
certainty float certainty of annotation

Box21 currently supports the following annotations

Keypoint


source

Keypoint

 Keypoint (label_name:str, certainty:float, x:float, y:float)

Represents a Keypoint Annotation


source

Box21Keypoint

 Box21Keypoint (asset_id:int, id:int, certainty:float, label_id:int,
                project_id:int, validated:bool, x:int, y:int)

Represents a Box21 Keypoint Annotation

BoundingBox


source

Box21BoundingBox

 Box21BoundingBox (asset_id:int, id:int, certainty:float, label_id:int,
                   project_id:int, validated:bool, x:float, y:float,
                   width:float, height:float)

Represents a Box21 BoundingBox Annotation


source

BoundingBox

 BoundingBox (label_name:str, certainty:float, x:float, y:float,
              width:float, height:float)

Represents a BoundingBox Annotation


source

parse_json_annotation

 parse_json_annotation (annotation_json:Dict[str,Any])