BoundingRect Class

A bounding box for an area inside an image.

Inheritance
BoundingRect

Constructor

BoundingRect(*, x: Optional[int] = None, y: Optional[int] = None, w: Optional[int] = None, h: Optional[int] = None, **kwargs)

Parameters

x
int
Required

X-coordinate of the top left point of the area, in pixels.

y
int
Required

Y-coordinate of the top left point of the area, in pixels.

w
int
Required

Width measured from the top-left point of the area, in pixels.

h
int
Required

Height measured from the top-left point of the area, in pixels.