PoseLandmarkerResult
struct PoseLandmarkerResult: Sendable, EquatablePose landmarks, world landmarks, and optional segmentation masks produced by PoseLandmarker.
-
Creates a
PoseLandmarkerResultwith landmarks, world landmarks, optional masks, and timestamp.Declaration
Swift
init(landmarks: [[NormalizedLandmark]], worldLandmarks: [[Landmark]], segmentationMasks: [MPMask]? = nil, timestampInMilliseconds: Int) -
Normalized
[0.0, 1.0]image-space landmarks for each detected pose.Declaration
Swift
let landmarks: [[NormalizedLandmark]] -
Per-pose segmentation masks, or
nilwhen segmentation mask output is disabled.Declaration
Swift
let segmentationMasks: [MPMask]? -
Timestamp in milliseconds associated with this result (
0in.imagemode).Declaration
Swift
let timestampInMilliseconds: Int -
Metric 3D world-space landmarks (in meters) for each detected pose.
Declaration
Swift
let worldLandmarks: [[Landmark]]