---
title: ObjectDetectionAnnotation
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/objectdetectionannotation
---

# ObjectDetectionAnnotation

An object detection annotation.

## Declaration

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

## Overview

Overview The annotation consists of a list of bounding boxes and object labels for each image.

## Topics

### Getting the properties

- [imageFileName](createmlcomponents/objectdetectionannotation/imagefilename.md)
- [objects](createmlcomponents/objectdetectionannotation/objects.md)
- [ObjectDetectionAnnotation.Annotation](createmlcomponents/objectdetectionannotation/annotation.md)
- [prominentObject](createmlcomponents/objectdetectionannotation/prominentobject.md)

### Encoding and decoding

- [ObjectDetectionAnnotation.CodingKeys](createmlcomponents/objectdetectionannotation/codingkeys.md)

### Default Implementations

- [Identifiable Implementations](createmlcomponents/objectdetectionannotation/identifiable-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Object detection components

- [DetectedObject](createmlcomponents/detectedobject.md)
- [ObjectDetectionMetrics](createmlcomponents/objectdetectionmetrics.md)
