iaa_od.models.annotation_protocol
Classes
|
Protocol representing the abstract structure of an annotation. |
- class iaa_od.models.annotation_protocol.AnnotationProtocol(*args, **kwargs)[source]
Bases:
ProtocolProtocol representing the abstract structure of an annotation. This protocol defines both Annotation and RandomAnnotation.
- gt_name
Name of the Ground Truth dataset this annotation belongs to.
- Type:
str
- id
Unique identifier for the annotation.
- Type:
str
- category_id
Category ID of the annotated object.
- Type:
int
- image_id
Identifier of the image containing the annotation.
- Type:
str
- bbox_coords
Bounding box coordinates of the annotation.
- Type:
- unit_id
Identifier of the unit this annotation belongs to (if units were computed).
- Type:
int
-
bbox_coords:
BoundingBox
-
category_id:
int
-
gt_name:
str
-
id:
str
-
image_id:
str
-
unit_id:
int