One Logo Pool Ball
Vision · IOS API REFERENCE

FaceObservation.Landmarks2D.Region

struct · iOS 18.0+ · SDK 27.1

struct Region

2D geometry information for a specific facial feature.

Members (6)

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+

pointsClassification

TypeScript
get pointsClassification(): FaceObservation_Landmarks2D_Region_PointsClassification
Swift declaration
let pointsClassification: FaceObservation.Landmarks2D.Region.PointsClassification

An enumeration that describes how to interpret the points the region provides.

method · iOS 18.0+

pointsInImageCoordinates

TypeScript
pointsInImageCoordinates(imageSize: { width: number; height: number }, origin?: CoordinateOrigin): Array<{ x: number; y: number }>
Swift declaration
func pointsInImageCoordinates(_ imageSize: CGSize, origin: CoordinateOrigin = .lowerLeft) -> [CGPoint]

Returns the landmark points in an image's coordinate space. - Parameters: - imageSize: The size of the image - origin:

get · iOS 18.0+

precisionEstimatesPerPoint

TypeScript
get precisionEstimatesPerPoint(): (Array<number>) | null
Swift declaration
let precisionEstimatesPerPoint: [Float]?

An array of precision estimates for each landmark point.

get · iOS 18.0+

originatingRequestDescriptor

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

points

TypeScript
get points(): Array<NormalizedPoint>
Swift declaration
let points: [NormalizedPoint]

The array of landmark points normalized to the bounding box of the `FaceObservation`.

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →