MLKitPoseDetectionCommon 框架参考
MLKPoseLandmark
@interface MLKPoseLandmark : NSObject
姿势检测结果中的特征点。
-
-
3D 点在输入图像空间中的位置。
Z 值在图片空间中没有固定的原点。相反,z 原点位于检测到的人的臀部。负 z 值表示地标位于 z 原点前方,位于检测到的人物与相机之间。而 z 值为正值表示地标位于 z 原点之后。
Z 值没有固定的范围。不过,由于 z 坐标系位于输入图像空间中,因此 z 值可用于推断地标之间的相对距离(以图像像素为单位)。
注意:z 值的准确性低于 x 值和 y 值。此外,系统不会计算面部特征点的 z 值,因此请忽略这些值。
声明
Objective-C
@property (nonatomic, readonly) MLKVision3DPoint *_Nonnull position;
-
地标实际上位于图片框中的可能性(介于 0 到 1 之间)。
声明
Objective-C
@property (nonatomic, readonly) float inFrameLikelihood;
-
声明
Objective-C
- (nonnull instancetype)init;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["`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"]]