iaa_od.models.random_annotation

Classes

RandomAnnotation(*, gt_name, id, ...)

A class to represent a random annotation for an image.

class iaa_od.models.random_annotation.RandomAnnotation(*, gt_name, id, category_id, image_id, coordinates)[source]

Bases: object

A class to represent a random annotation for an image.

gt_name

The name of the ground truth of the annotation.

Type:

str

id

The unique identifier for the annotation.

Type:

str

category_id

The category ID of the annotation.

Type:

int

image_id

The identifier of the image the annotation belongs to.

Type:

str

bbox_coords

The bounding box coordinates of the annotation.

Type:

BoundingBox

unit_id

The identifier of the unit this annotation belongs to (if units were computed).

Type:

Optional[int]

bbox_coords: BoundingBox
category_id: int
coordinates: InitVar
gt_name: str
id: str
image_id: str
unit_id: Optional[int]