iaa_od.models.bounding_box
Classes
|
A class to represent a bounding box. |
- class iaa_od.models.bounding_box.BoundingBox(*, image_height=None, input_coords)[source]
Bases:
objectA class to represent a bounding box. This class can be initialised with either COCO format bounding box coordinates, or with XYXY format bounding box coordinates. Either way, the coordinates are then stored internally in COCO format.
- coords
The bounding box coordinates in COCO format.
- Type:
- property area: float
Calculate the area of the bounding box.
- Returns:
The area of the bounding box.
- Return type:
float
-
coords:
COCOCoordinates
-
image_height:
Optional[int]
-
input_coords:
InitVar