<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/classification_result.py#L64-L99) |

Contains the classification results of a model.

#### View aliases


**Main aliases**

\`mp.tasks.audio.AudioClassifierResult\`, \`mp.tasks.components.containers.ClassificationResult\`, \`mp.tasks.text.TextClassifierResult\`

<br />

```python
mp.tasks.vision.ImageClassifierResult(
    classifications: List[`mp.tasks.components.containers.Classifications`],
    timestamp_ms: Optional[int] = None
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `classifications` | A list of `Classifications` objects, each for a head of the model. |
| `timestamp_ms` | The optional timestamp (in milliseconds) of the start of the chunk of data corresponding to these results. This is only used for classification on time series (e.g. audio classification). In these use cases, the amount of data to process might exceed the maximum size that the model can process: to solve this, the input data is split into multiple chunks starting at different timestamps. |

<br />

## Methods

### `from_ctypes`

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

```python
@classmethod
from_ctypes(
    c_struct: classification_result_c.MpClassificationResultC
) -> 'ClassificationResult'
```

Creates a `ClassificationResult` object from a ctypes struct.

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| timestamp_ms | `None` |

<br />