<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/AnnotationType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV14AnnotationTypeO"
  },
  "title" : "MLObjectDetector.AnnotationType"
}
-->

# MLObjectDetector.AnnotationType

The available types of image annotations.

```
enum AnnotationType
```

## Overview

Use [`MLObjectDetector.AnnotationType`](/documentation/CreateML/MLObjectDetector/AnnotationType) to tell Create ML how to interpret your object annotations.

## Topics

### Bounding box annotations

[`case boundingBox(units: MLBoundingBoxUnits, origin: MLBoundingBoxCoordinatesOrigin, anchor: MLBoundingBoxAnchor)`](/documentation/CreateML/MLObjectDetector/AnnotationType/boundingBox(units:origin:anchor:))

An annotation type that defines a rectangle around an object within an image.

[`enum MLBoundingBoxUnits`](/documentation/CreateML/MLBoundingBoxUnits)

The units a bounding box annotation uses to define its position and size.

[`enum MLBoundingBoxAnchor`](/documentation/CreateML/MLBoundingBoxAnchor)

A location within a bounding box that an annotation’s coordinates use as
their reference point.

[`enum MLBoundingBoxCoordinatesOrigin`](/documentation/CreateML/MLBoundingBoxCoordinatesOrigin)

The location within an image that an annotation’s coordinates use as their
origin.

## Relationships

### Conforms To

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

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

---

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)