Class

VNDetectedObjectObservation

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

Declaration

class VNDetectedObjectObservation : VNObservation

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.

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.

Recognizing Objects in Live Capture

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