<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#L88-L122) |

Represents the list of detected objects.

#### View aliases


**Main aliases**

\`mp.tasks.vision.FaceDetectorResult\`, \`mp.tasks.vision.ObjectDetectorResult\`

<br />

```python
mp.tasks.components.containers.DetectionResult(
    detections: List[`mp.tasks.components.containers.Detection`]
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `detections` | A list of `Detection` objects. |

<br />

## Methods

### `from_ctypes`

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

```python
@classmethod
from_ctypes(
    c_obj: detections_c_lib.MpDetectionResultC
) -> 'DetectionResult'
```

Creates a `DetectionResult` object from a `MpDetectionResultC` object.

### `__eq__`

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

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