Skip to content

Bounding Box

BBox

Bases: DataModel

A data model for representing bounding box.

Attributes:

  • title (str) –

    The title of the bounding box.

  • coords (list[int]) –

    The coordinates of the bounding box.

The bounding box is defined by two points
  • (x1, y1): The top-left corner of the box.
  • (x2, y2): The bottom-right corner of the box.

OBBox

Bases: DataModel

A data model for representing oriented bounding boxes.

Attributes:

  • title (str) –

    The title of the oriented bounding box.

  • coords (list[int]) –

    The coordinates of the oriented bounding box.

The oriented bounding box is defined by four points
  • (x1, y1): The first corner of the box.
  • (x2, y2): The second corner of the box.
  • (x3, y3): The third corner of the box.
  • (x4, y4): The fourth corner of the box.