MLKitPoseDetectionCommon Framework Reference

  • Pose class in iOS describes the results of pose detection, including the location of body joints.

  • It provides an array of landmarks representing different body parts, accessible via the landmarks property.

  • You can retrieve a specific landmark using its type with the landmark(ofType:) method.

  • The Pose object is created internally by the Pose Detection API and cannot be directly instantiated.

Pose

class Pose : NSObject

Describes a pose detection result.

  • An array of all the landmarks in the detected pose.

    Declaration

    Swift

    var landmarks: [PoseLandmark] { get }
  • Unavailable.

  • Returns the landmark which corresponds to a given type.

    Declaration

    Swift

    func landmark(ofType type: PoseLandmarkType) -> PoseLandmark

    Parameters

    type

    The type of the landmark which should be returned.

    Return Value

    The landmark which corresponds to type.