<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/bounding_box.py#L23-L66) |

An integer bounding box, axis aligned.

    mp.tasks.components.containers.BoundingBox(
        origin_x: int, origin_y: int, width: int, height: int
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `origin_x` | The X coordinate of the top-left corner, in pixels. |
| `origin_y` | The Y coordinate of the top-left corner, in pixels. |
| `width` | The width of the bounding box, in pixels. |
| `height` | The height of the bounding box, in pixels. |

<br />

## Methods

### `from_ctypes`

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

    @classmethod
    from_ctypes(
        c_obj: rect_c_lib.MpRectC
    ) -> 'BoundingBox'

Creates a `BoundingBox` object from a ctypes MpRectC struct.

### `__eq__`

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

    __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 />