Class

VNDetectedObjectObservation

An image analysis result that provides the position and extent of a detected image feature.

Overview

This type of observation results from a VNTrackObjectRequest. It represents a detected object that the Vision request should track.

Topics

Initializing a Detected Object Observation

init(boundingBox: CGRect)

Creates a detected object observation based on bounding box coordinates.

init(requestRevision: Int, boundingBox: CGRect)

Creates a detected object observation with the specified revision number and bounding box coordinates.

Beta

Locating a Detected Object

var boundingBox: CGRect

The bounding box of the detected object.

Relationships

Inherits From

Conforms To

See Also

Object Tracking

Tracking the User’s Face in Real Time

Detect and track faces from the selfie cam feed in real time.

Tracking Multiple Objects or Rectangles in Video

Apply Vision algorithms to track objects or rectangles throughout a video.

class VNTrackingRequest

The abstract superclass for image analysis requests that track unique features across multiple images or video frames.

class VNTrackRectangleRequest

An image analysis request that tracks movement of a previously identified rectangular object across multiple images or video frames.

class VNTrackObjectRequest

An image analysis request that tracks movement of a previously identified arbitrary object across multiple images or video frames.

class VNRecognizedObjectObservation

A detected object observation with an array of classification labels that classify the recognized object.

Beta
Recognizing Objects in Live Capture

Apply Vision algorithms to identify objects in real-time video.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software