<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNObjectTracker-1n598",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic15CNObjectTrackerC"
  },
  "title" : "CNObjectTracker"
}
-->

# CNObjectTracker

An object that converts a normalized point or rectangle into a detection track that tracks an object over time.

```
class CNObjectTracker
```

## Topics

### Initializers

[`init(commandQueue: any MTLCommandQueue)`](/documentation/Cinematic/CNObjectTracker-1n598/init(commandQueue:))

Creates a new detection track builder.

### Instance Methods

[`func continueTracking(at: CMTime, sourceImage: CVPixelBuffer, sourceDisparity: CVPixelBuffer) -> CNBoundsPrediction?`](/documentation/Cinematic/CNObjectTracker-1n598/continueTracking(at:sourceImage:sourceDisparity:))

An object that continues to track an object that you’ve started tracking, and adds a new detection to the detection track you’re building.

[`func findObject(at: CGPoint, sourceImage: CVPixelBuffer) -> CNBoundsPrediction?`](/documentation/Cinematic/CNObjectTracker-1n598/findObject(at:sourceImage:))

An object that finds the bounds of an object at the given point.

[`func finishDetectionTrack() -> CNDetectionTrack`](/documentation/Cinematic/CNObjectTracker-1n598/finishDetectionTrack())

Finish constructing the detection track and return it.

[`func resetDetectionTrack()`](/documentation/Cinematic/CNObjectTracker-1n598/resetDetectionTrack())

Resets the builder to construct a new detection track.

[`func startTracking(at: CMTime, within: CGRect, sourceImage: CVPixelBuffer, sourceDisparity: CVPixelBuffer) -> Bool`](/documentation/Cinematic/CNObjectTracker-1n598/startTracking(at:within:sourceImage:sourceDisparity:))

Starts creating a detection track to track an object within the given bounds.

### Type Properties

[`static var isSupported: Bool`](/documentation/Cinematic/CNObjectTracker-1n598/isSupported)

Indicates whether the current device supports object detection and tracking.

---

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)