---
title: MLObjectDetector.ObjectAnnotation
framework: createml
role: symbol
role_heading: Structure
path: createml/mlobjectdetector/objectannotation
---

# MLObjectDetector.ObjectAnnotation

The label, location, and confidence score of an item the object detector found in an image.

## Declaration

```swift
struct ObjectAnnotation
```

## Topics

### Creating an annotation

- [init(label:boundingBox:confidence:)](createml/mlobjectdetector/objectannotation/init(label:boundingbox:confidence:).md)

### Inspecting an annotation

- [label](createml/mlobjectdetector/objectannotation/label.md)
- [boundingBox](createml/mlobjectdetector/objectannotation/boundingbox.md)
- [confidence](createml/mlobjectdetector/objectannotation/confidence.md)

### Describing an annotation

- [description](createml/mlobjectdetector/objectannotation/description.md)
- [debugDescription](createml/mlobjectdetector/objectannotation/debugdescription.md)
- [playgroundDescription](createml/mlobjectdetector/objectannotation/playgrounddescription.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mlobjectdetector/objectannotation/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mlobjectdetector/objectannotation/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mlobjectdetector/objectannotation/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomPlaygroundDisplayConvertible](swift/customplaygrounddisplayconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Testing an object detector

- [prediction(from:)](createml/mlobjectdetector/prediction(from:).md)
- [predictions(from:)](createml/mlobjectdetector/predictions(from:).md)
- [MLObjectDetector.DetectedObjects](createml/mlobjectdetector/detectedobjects.md)
