<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/ObjectDetectionAnnotation/Annotation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents25ObjectDetectionAnnotationV0E0V"
  },
  "title" : "ObjectDetectionAnnotation.Annotation"
}
-->

# ObjectDetectionAnnotation.Annotation

The annotation represented by an object label and its bounding box.

```
struct Annotation
```

## Topics

### Getting the properties

[`let boundingBox: CGRect`](/documentation/CreateMLComponents/ObjectDetectionAnnotation/Annotation/boundingBox)

The bounding box that describes the spatial location of the object.

[`let label: Label`](/documentation/CreateMLComponents/ObjectDetectionAnnotation/Annotation/label)

The object label.

### Encoding and decoding

[`enum CodingKeys`](/documentation/CreateMLComponents/ObjectDetectionAnnotation/Annotation/CodingKeys)

Coding keys for Annotation.

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)