One Logo Pool Ball
Vision · IOS API REFERENCE

FaceObservation.Landmarks2D

struct · iOS 18.0+ · SDK 27.1

struct Landmarks2D

A collection of facial features that a request detects. 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.

Members (15)

get · iOS 18.0+

medianLine

TypeScript
get medianLine(): FaceObservation_Landmarks2D_Region
Swift declaration
var medianLine: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

rightPupil

TypeScript
get rightPupil(): FaceObservation_Landmarks2D_Region
Swift declaration
var rightPupil: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 18.0+

faceContour

TypeScript
get faceContour(): FaceObservation_Landmarks2D_Region
Swift declaration
var faceContour: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

leftEyebrow

TypeScript
get leftEyebrow(): FaceObservation_Landmarks2D_Region
Swift declaration
var leftEyebrow: FaceObservation.Landmarks2D.Region { get }

The region containing points that trace the left eyebrow.

get · iOS 18.0+

rightEyebrow

TypeScript
get rightEyebrow(): FaceObservation_Landmarks2D_Region
Swift declaration
var rightEyebrow: FaceObservation.Landmarks2D.Region { get }

The region containing points that trace the right eyebrow.

get · iOS 18.0+

originatingRequestDescriptor

TypeScript
get originatingRequestDescriptor(): (RequestDescriptor) | null
Swift declaration
let originatingRequestDescriptor: RequestDescriptor?
get · iOS 18.0+

nose

TypeScript
get nose(): FaceObservation_Landmarks2D_Region
Swift declaration
var nose: FaceObservation.Landmarks2D.Region { get }

The region containing points that outline the nose.

get · iOS 18.0+

leftEye

TypeScript
get leftEye(): FaceObservation_Landmarks2D_Region
Swift declaration
var leftEye: FaceObservation.Landmarks2D.Region { get }

The region containing points that outline the left eye.

get · iOS 18.0+

rightEye

TypeScript
get rightEye(): FaceObservation_Landmarks2D_Region
Swift declaration
var rightEye: FaceObservation.Landmarks2D.Region { get }

The region containing points that outline the right eye.

get · iOS 18.0+

allPoints

TypeScript
get allPoints(): FaceObservation_Landmarks2D_Region
Swift declaration
var allPoints: FaceObservation.Landmarks2D.Region { get }
get · iOS 18.0+

innerLips

TypeScript
get innerLips(): FaceObservation_Landmarks2D_Region
Swift declaration
var innerLips: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

leftPupil

TypeScript
get leftPupil(): FaceObservation_Landmarks2D_Region
Swift declaration
var leftPupil: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

noseCrest

TypeScript
get noseCrest(): FaceObservation_Landmarks2D_Region
Swift declaration
var noseCrest: FaceObservation.Landmarks2D.Region { get }

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

get · iOS 18.0+

outerLips

TypeScript
get outerLips(): FaceObservation_Landmarks2D_Region
Swift declaration
var outerLips: FaceObservation.Landmarks2D.Region { get }

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

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →