MLKitPoseDetectionCommon 架構參考資料
MLKPoseLandmark
@interface MLKPoseLandmark : NSObject
姿勢偵測結果中的地標。
-
-
3D 點在輸入圖像空間中的位置。
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;
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間: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"]]