<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/detections.py#L27-L85) |

Represents one detected object in the object detector's results.

    mp.tasks.components.containers.Detection(
        bounding_box: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/components/containers/BoundingBox,
        categories: List[https://developers.google.com/edge/api/mediapipe/python/mp/tasks/components/containers/Category],
        keypoints: Optional[List[keypoint_lib.NormalizedKeypoint]] = None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `bounding_box` | A BoundingBox object. |
| `categories` | A list of Category objects. |
| `keypoints` | A list of NormalizedKeypoint objects. |

<br />

## Methods

### `from_ctypes`

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

    @classmethod
    from_ctypes(
        c_obj: detections_c_lib.MpDetectionC
    ) -> 'Detection'

Creates a `Detection` object from the given `MpDetectionC` object.

### `__eq__`

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

    __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 ||
|---|---|
| keypoints | `None` |

<br />