BoundingBox

class scenebox.models.annotation.BoundingBox(x_min, x_max, y_min, y_max, label, category_id=None, confidence=None, attributes=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.