# classification

Python API: `depthai_nodes.node.parsers.utils.classification`

## Functions

### compute_classification_scores

```python
def compute_classification_scores(scores: np.ndarray, *, is_softmax: bool = True) -> np.ndarray:
```

Flatten class scores and optionally apply softmax.

Parameters

 * `scores` (`np.ndarray`): Model score tensor.
 * `is_softmax` (`bool`): Whether scores already contain probabilities. If false, apply softmax.

Returns

 * `np.ndarray`: One-dimensional array with one score per class.
