Vision · IOS API REFERENCE
VNFaceObservation
class · iOS 11.0+ · SDK 27.1
class VNFaceObservation
Members (7)
init · iOS 12.0+ · Deprecated in iOS 15.0init
TypeScriptstatic initRequestRevisionBoundingBoxRollYaw(requestRevision: number, boundingBox: { x: number; y: number; width: number; height: number }, roll?: (_Foundation_NSNumber) | null, yaw?: (_Foundation_NSNumber) | null): VNFaceObservation
Swift declarationconvenience init(requestRevision: Int, boundingBox: CGRect, roll: NSNumber?, yaw: NSNumber?)
init · iOS 15.0+init
TypeScriptstatic initRequestRevisionBoundingBoxRollYawPitch(requestRevision: number, boundingBox: { x: number; y: number; width: number; height: number }, roll?: (_Foundation_NSNumber) | null, yaw?: (_Foundation_NSNumber) | null, pitch?: (_Foundation_NSNumber) | null): VNFaceObservation
Swift declarationconvenience init(requestRevision: Int, boundingBox: CGRect, roll: NSNumber?, yaw: NSNumber?, pitch: NSNumber?)
get · iOS 11.0+landmarks
TypeScriptget landmarks(): (VNFaceLandmarks2D) | null
Swift declarationvar landmarks: VNFaceLandmarks2D? { get }
get · iOS 15.0+pitch
TypeScriptget pitch(): (_Foundation_NSNumber) | null
Swift declarationvar pitch: NSNumber? { get }
get · iOS 12.0+roll
TypeScriptget roll(): (_Foundation_NSNumber) | null
Swift declarationvar roll: NSNumber? { get }
get · iOS 12.0+yaw
TypeScriptget yaw(): (_Foundation_NSNumber) | null
Swift declarationvar yaw: NSNumber? { get }
get · iOS 13.0+faceCaptureQuality
TypeScriptget faceCaptureQuality(): (number) | null
Swift declaration@nonobjc var faceCaptureQuality: Float? { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
VNFaceObservation.init()
inherited init: cannot prove legal (class declares 2 custom initializers)
All Vision types →