vpi.BoundingBox

class vpi.BoundingBox

Define a bounding box.

A bounding box is a 3x3 matrix storing its homography 2D transformation from the top-left corner (defining its start position) and its dimensions (width, height).

Note

This is a generic 2D bounding box. It can store a 2D bounding box transformed by any homography. Most of the time it will store an axis-aligned bounding box.

Attributes

dtype

Data type of the bounding box fields.

height

Height of the bounding box.

width

Width of the bounding box.

xform

Bounding box transform (xform) property.