MLKitPoseDetectionCommon Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
MLKPoseLandmark
@interface MLKPoseLandmark : NSObject
A landmark in a pose detection result.
-
The landmark type (i.e. location on the body).
-
The position of the 3D point in the input image space.
The z-value does not have a fixed origin in the image space. Instead, the z-origin is located on
the detected person’s hip. A negative z-value indicates that the landmark is in front of the
z-origin, between the detected person and the camera. Whereas a positive z-value indicates that
the landmark is behind the z-origin.
Z-values don’t have a fixed range. However, since the z-coordinate system is in the input
image space, the z-values can be used to infer relative distance between landmarks, measured in
image pixels.
Note: Z-values are less accurate than x and y-values. Additionally, z-values for facial landmarks
are not calculated, so please disregard them.
Declaration
Objective-C
@property (nonatomic, readonly) MLKVision3DPoint *_Nonnull position;
-
The likelihood, in range [0, 1], that the landmark is actually in the image frame.
Declaration
Objective-C
@property (nonatomic, readonly) float inFrameLikelihood;
-
Declaration
Objective-C
- (nonnull instancetype)init;
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-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`MLKPoseLandmark` represents a specific point on a detected body within an image."],["Each landmark includes its type (body location), 3D position in the image, and a likelihood of being within the frame."],["The 3D position's z-value indicates relative depth, with negative values closer to the camera and positive values further away, relative to the person's hip."],["While the z-values help understand relative depth, they are less accurate than the x and y coordinates and are not calculated for facial landmarks."]]],["MLKPoseLandmark represents a body landmark in pose detection. It provides the `type`, indicating the body location, and the `position`, a 3D point in image space with z-origin at the hip. The `inFrameLikelihood` property, ranging from 0 to 1, reflects the confidence of the landmark's presence in the image. Z-values indicate depth relative to the hip, with negative values in front and positive values behind. Facial landmarks do not have z-values. The init method is unavailable.\n"]]