HandLandmarkerResult
class HandLandmarkerResult: TaskResult, NSCopyingRepresents the hand landmarker results generated by HandLandmarker.
-
Initializes a new
HandLandmarkerResultwith the given landmarks, world landmarks, handedness and timestamp (in milliseconds).Declaration
Swift
init(landmarks: [[NormalizedLandmark]], worldLandmarks: [[Landmark]], handedness: [[ResultCategory]], timestampInMilliseconds: Int)Parameters
landmarksThe hand landmarks of detected hands.
worldLandmarksThe hand landmarks in world coordinates of detected hands.
handednessThe handedness of detected hands.
timestampInMillisecondsThe timestamp for this result.
Return Value
An instance of
HandLandmarkerResultinitialized with the given landmarks, world landmarks, handedness and timestamp (in milliseconds). -
Handedness of detected hands. Note: Left and Right handedness correspond to the subject's hands, not the viewer. Passing a horizontally mirrored image will invert these outputs.
Declaration
Swift
var handedness: [[ResultCategory]] { get } -
Hand landmarks of detected hands.
Declaration
Swift
var landmarks: [[NormalizedLandmark]] { get } -
Hand landmarks in world coordinates of detected hands.
Declaration
Swift
var worldLandmarks: [[Landmark]] { get }