Class

VNFaceLandmarks2D

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

Declaration

@interface VNFaceLandmarks2D : VNFaceLandmarks

Overview

This class represents the set of all detectable 2D face landmarks and regions, exposed as properties. The coordinates of the face landmarks are normalized to the dimensions of the face observation’s boundingBox, with the origin at the bounding box’s lower-left corner. Use the VNImagePointForFaceLandmarkPoint function to convert normalized face landmark points into absolute points within the image’s coordinate system.

Topics

Face Landmark Points

allPoints

The region containing all face landmark points.

faceContour

The region containing points that trace the face contour from the left cheek, over the chin, to the right cheek.

leftEye

The region containing points that outline the left eye.

rightEye

The region containing points that outline the right eye.

leftEyebrow

The region containing points that trace the left eyebrow.

rightEyebrow

The region containing points that trace the right eyebrow.

nose

The region containing points that outline the nose.

noseCrest

The region containing points that trace the center crest of the nose.

medianLine

The region containing points that trace a vertical line down the center of the face.

outerLips

The region containing points that outline the outside of the lips.

innerLips

The region containing points that outline the space between the lips.

leftPupil

The region containing the point where the left pupil is located.

rightPupil

The region containing the point where the right pupil is located.

Relationships

Inherits From

See Also

Finding Face Landmarks

landmarks

The facial features found in the detected face.

VNFaceLandmarkRegion2D

2D geometry information for a specific facial feature.

VNFaceLandmarks

The abstract superclass for containers of face landmark information.

VNFaceLandmarkRegion

The abstract superclass for information about a specific face landmark.

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