View source on GitHub
|
A rectangle with rotation in normalized coordinates.
mp.tasks.components.containers.NormalizedRect(
x_center: float,
y_center: float,
width: float,
height: float,
rotation: Optional[float] = 0.0,
rect_id: Optional[int] = None
)
Location of the center of the rectangle in image coordinates. The (0.0, 0.0) point is at the (top, left) corner.
The values of box center location and size are within [0, 1].
Methods
__eq__
__eq__(
other: Any
) -> bool
Checks if this object is equal to the given object.
| Args | |
|---|---|
other
|
The object to be compared with. |
| Returns | |
|---|---|
| True if the objects are equal. |
Class Variables | |
|---|---|
| rect_id |
None
|
| rotation |
0.0
|
View source on GitHub