<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/components/containers/rect.py#L77-L123) |

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\].

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `x_center` | The normalized X coordinate of the rectangle, in image coordinates. |
| `y_center` | The normalized Y coordinate of the rectangle, in image coordinates. |
| `width` | The width of the rectangle. |
| `height` | The height of the rectangle. |
| `rotation` | Rotation angle is clockwise in radians. |
| `rect_id` | Optional unique id to help associate different rectangles to each other. |

<br />

## Methods

### `__eq__`

[View source](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/components/containers/rect.py#L105-L123)

    __eq__(
        other: Any
    ) -> bool

Checks if this object is equal to the given object.

<br />

<br />

<br />

| Args ||
|---|---|
| `other` | The object to be compared with. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| True if the objects are equal. ||

<br />

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| rect_id | `None` |
| rotation | `0.0` |

<br />