<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#L23-L46) |

A rectangle, used as part of detection results.

    mp.tasks.components.containers.Rect(
        left: int, top: int, bottom: int, right: int
    )

Absolute coordinates. The origin is on the top-left corner of the image.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `left` | The X coordinate of the left side of the rectangle. |
| `top` | The Y coordinate of the top of the rectangle. |
| `bottom` | The Y coordinate of the bottom of the rectangle. |
| `right` | The X coordinate of the right side of the rectangle. |

<br />

## Methods

### `to_ctypes`

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

    to_ctypes() -> rect_c_module.MpRectC

Generates a C API MpRectC object.

### `__eq__`

    __eq__(
        other
    )

Return self==value.