BoundingBox

class scenebox.models.annotation.BoundingBox(label=None, uid=None, confidence=None, attributes=None, x_min=None, x_max=None, y_min=None, y_max=None, category_id=None)

Holds the coordinates and metadata of a single bounding box.

Several BoundingBoxes can be compiled together to form a BoundingBoxAnnotation.

Variables:
  • x_min – Minimum bounding box x coordinate. Must be a positive value.

  • x_max – Maximum bounding box x coordinate. Must be a positive value.

  • y_min – Minimum bounding box y coordinate. Must be a positive value.

  • y_max – Maximum bounding box y coordinate. Must be a positive value.

  • label – Name of the region encapsulated by the bounding box.

  • category_id – Label category ID.

  • confidence – Labelling confidence. Must be between 0 and 1.

  • attributes – Additional bounding box metadata.