Instance Property

inputObservation

The observation object defining a region to track.

Declaration

var inputObservation: VNDetectedObjectObservation { get set }

Discussion

Providing an observation not returned from a tracker, such as a user-defined observation, begins a new tracker for the sequence. Providing an observation that was returned from a tracker continues the use of that tracker, to track the region to the next frame.

In general, unless specified in the request's documentation or header file, you must define the rectangle in normalized coordinates, with the origin at the lower-left corner.

See Also

Configuring a Tracking Request

enum VNRequestTrackingLevel

An enumeration of tracking priorities.

var trackingLevel: VNRequestTrackingLevel

A value for specifying whether to prioritize speed or location accuracy.

var isLastFrame: Bool

A Boolean that indicates the last frame in a tracking sequence.