HolisticLandmarkerResult
struct HolisticLandmarkerResult: Sendable, EquatableHolistic face, pose, and hand landmarks detected by HolisticLandmarker (not Hashable because MPMask conforms only to Equatable).
-
init(faceLandmarks:faceBlendshapes:poseLandmarks:poseWorldLandmarks:poseSegmentationMask:leftHandLandmarks:leftHandWorldLandmarks:rightHandLandmarks:rightHandWorldLandmarks:timestampInMilliseconds:)
Creates a holistic landmarker result for a single frame.
Declaration
Swift
init(faceLandmarks: [NormalizedLandmark], faceBlendshapes: Classifications? = nil, poseLandmarks: [NormalizedLandmark], poseWorldLandmarks: [Landmark], poseSegmentationMask: MPMask? = nil, leftHandLandmarks: [NormalizedLandmark], leftHandWorldLandmarks: [Landmark], rightHandLandmarks: [NormalizedLandmark], rightHandWorldLandmarks: [Landmark], timestampInMilliseconds: Int = 0) -
Optional face blendshape classifications when
outputFaceBlendshapesis enabled.Declaration
Swift
let faceBlendshapes: Classifications? -
Detected face landmarks in normalized
[0.0, 1.0]image coordinates.Declaration
Swift
let faceLandmarks: [NormalizedLandmark] -
Detected left-hand landmarks in normalized
[0.0, 1.0]image coordinates.Declaration
Swift
let leftHandLandmarks: [NormalizedLandmark] -
Detected 3D left-hand landmarks in world coordinates (meters).
Declaration
Swift
let leftHandWorldLandmarks: [Landmark] -
Detected pose landmarks in normalized
[0.0, 1.0]image coordinates.Declaration
Swift
let poseLandmarks: [NormalizedLandmark] -
Optional
Float32pose segmentation mask whenoutputPoseSegmentationMasksis enabled.Declaration
Swift
let poseSegmentationMask: MPMask? -
Detected 3D pose landmarks in world coordinates (meters).
Declaration
Swift
let poseWorldLandmarks: [Landmark] -
Detected right-hand landmarks in normalized
[0.0, 1.0]image coordinates.Declaration
Swift
let rightHandLandmarks: [NormalizedLandmark] -
Detected 3D right-hand landmarks in world coordinates (meters).
Declaration
Swift
let rightHandWorldLandmarks: [Landmark] -
Timestamp in milliseconds of the input frame, or
0in.imagemode.Declaration
Swift
let timestampInMilliseconds: Int