---
title: ObjectDetectionMetrics
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/objectdetectionmetrics
---

# ObjectDetectionMetrics

Metrics for object detection model.

## Declaration

```swift
struct ObjectDetectionMetrics<Label> where Label : Comparable, Label : Decodable, Label : Encodable, Label : Hashable
```

## Topics

### Creating a metrics object

- [init()](createmlcomponents/objectdetectionmetrics/init().md)

### Getting the properties Properties

- [defaultConfidenceThreshold](createmlcomponents/objectdetectionmetrics/defaultconfidencethreshold.md)
- [labels](createmlcomponents/objectdetectionmetrics/labels.md)

### Calculating the precision

- [averageOfAveragePrecisionAtVariedThresholds(predictions:annotations:confidenceThresholds:)](createmlcomponents/objectdetectionmetrics/averageofaverageprecisionatvariedthresholds(predictions:annotations:confidencethresholds:).md)
- [averageOfMeanAveragePrecisionAtVariedThresholds(predictions:annotations:confidenceThresholds:)](createmlcomponents/objectdetectionmetrics/averageofmeanaverageprecisionatvariedthresholds(predictions:annotations:confidencethresholds:).md)
- [averagePrecision(predictions:annotations:confidenceThresholds:overlapThreshold:)](createmlcomponents/objectdetectionmetrics/averageprecision(predictions:annotations:confidencethresholds:overlapthreshold:).md)
- [meanAveragePrecision(predictions:annotations:confidenceThresholds:overlapThreshold:)](createmlcomponents/objectdetectionmetrics/meanaverageprecision(predictions:annotations:confidencethresholds:overlapthreshold:).md)

### Extracting labels

- [extractLabels(from:)](createmlcomponents/objectdetectionmetrics/extractlabels(from:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Object detection components

- [DetectedObject](createmlcomponents/detectedobject.md)
- [ObjectDetectionAnnotation](createmlcomponents/objectdetectionannotation.md)
