Class

VNFaceObservation

Face or facial-feature information detected by an image analysis request.

Overview

This type of observation results from a VNDetectFaceRectanglesRequest. It contains information about facial landmarks and regions found in the image.

Topics

Creating an Observation

init(requestRevision: Int, boundingBox: CGRect, roll: NSNumber?, yaw: NSNumber?)

Creates a face observation with the given revision number, bounding box, roll, and yaw.

Beta

Finding Face Landmarks

var landmarks: VNFaceLandmarks2D?

The facial features found in the detected face.

class VNFaceLandmarks2D

A collection of all facial features detected in a face observation, with 2D geometry information for each.

class VNFaceLandmarkRegion2D

2D geometry information for a specific facial feature.

class VNFaceLandmarks

The abstract superclass for containers of face landmark information.

class VNFaceLandmarkRegion

The abstract superclass for information about a specific face landmark.

Determining Facial Orientation

var roll: NSNumber?

The detected face's roll angle, as populated by the VNDetectFaceRectanglesRequest.

Beta
var yaw: NSNumber?

The detected face's yaw angle, as populated by the VNDetectFaceRectanglesRequest.

Beta

Relationships

Conforms To

See Also

Face Detection

class VNDetectFaceRectanglesRequest

An image analysis request that finds faces within an image.

class VNDetectFaceLandmarksRequest

An image analysis request that finds facial features (such as the eyes and mouth) in an image.

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