Skip to content

Object

Bases: IDMixin

An object specifies its value, spatial extent, and score.

Experimental

Object is experimental since 1.9.0 and may change without notice.

PARAMETER DESCRIPTION
value

Value

TYPE: int | str

x_center

Center x coordinate

TYPE: float

y_center

Center y coordinate

TYPE: float

width

Width

TYPE: float

height

Height

TYPE: float

rotation

Rotation (counterclockwise) in radians

TYPE: float | None DEFAULT: None

score

Score

TYPE: float | None DEFAULT: None

id property

RETURNS DESCRIPTION
uuid.UUID

ID

value property

RETURNS DESCRIPTION
int | str

Value

x_center property

RETURNS DESCRIPTION
float

Center x coordinate

y_center property

RETURNS DESCRIPTION
float

Center y coordinate

width property

RETURNS DESCRIPTION
float

Width

height property

RETURNS DESCRIPTION
float

Height

rotation property

RETURNS DESCRIPTION
float

Rotation (counterclockwise) in radians

score property

RETURNS DESCRIPTION
float | None

Score

area property

RETURNS DESCRIPTION
float

Area

__eq__

Compares the objects.

PARAMETER DESCRIPTION
other

Other object

TYPE: object

RETURNS DESCRIPTION
bool

True if the objects are equal, False otherwise