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:
|
x_center
|
Center x coordinate
TYPE:
|
y_center
|
Center y coordinate
TYPE:
|
width
|
Width
TYPE:
|
height
|
Height
TYPE:
|
rotation
|
Rotation (counterclockwise) in radians
TYPE:
|
score
|
Score
TYPE:
|
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:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if the objects are equal, False otherwise |