Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

MediaPipeTasksVision Framework Reference

HandLandmarkerResult

class HandLandmarkerResult : TaskResult 

Represents the hand landmarker results generated by HandLandmarker .

  • 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 }
  • Handedness of detected hands.

    Declaration

    Swift

    var handedness: [[ResultCategory ]] { get }
  • Initializes a new HandLandmarkerResult with the given landmarks, world landmarks, handedness and timestamp (in milliseconds).

    Declaration

    Swift

    init(landmarks: [[NormalizedLandmark ]], worldLandmarks: [[Landmark ]], handedness: [[ResultCategory ]], timestampInMilliseconds: Int)

    Parameters

    landmarks

    The hand landmarks of detected hands.

    worldLandmarks

    The hand landmarks in world coordinates of detected hands.

    handedness

    The handedness of detected hands.

    timestampInMilliseconds

    The timestamp for this result.

    Return Value

    An instance of HandLandmarkerResult initialized with the given landmarks, world landmarks, handedness and timestamp (in milliseconds).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月08日 UTC.