PoseLandmarkerResult
class PoseLandmarkerResult: TaskResult, NSCopyingRepresents the pose landmarks deection results generated by PoseLandmarker.
-
Initializes a new
PoseLandmarkerResultwith the given array of landmarks, world landmarks, segmentation masks of the detected poses and timestamp (in milliseconds).Declaration
Swift
init(landmarks: [[NormalizedLandmark]], worldLandmarks: [[Landmark]], segmentationMasks: [Mask]?, timestampInMilliseconds: Int)Parameters
landmarksAn array of
NormalizedLandmarkobjects.worldLandmarksAn array of
Landmarkobjects.segmentationMasksAn array of
Maskobjects.timestampInMillisecondsThe timestamp (in milliseconds) for this result.
Return Value
An instance of
PoseLandmarkerResultinitialized with the given array of landmarks, world landmarks, segmentation masks of the detected poses and timestamp (in milliseconds). -
Pose landmarks of detected poses.
Declaration
Swift
var landmarks: [[NormalizedLandmark]] { get } -
Pose segmentation masks.
Declaration
Swift
var segmentationMasks: [Mask] { get } -
Pose landmarks in world coordinates of detected poses.
Declaration
Swift
var worldLandmarks: [[Landmark]] { get }