Referensi Framework MLKitPoseDetectionCommon
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
MLKPoseLandmark
@interface MLKPoseLandmark : NSObject
Landmark dalam hasil deteksi pose.
-
Jenis penanda (yaitu lokasi di tubuh).
-
Posisi titik 3D dalam ruang gambar input.
Nilai z tidak memiliki asal tetap dalam ruang gambar. Sebagai gantinya, asal z terletak di
pinggul orang yang terdeteksi. Nilai z negatif menunjukkan bahwa penanda berada di depan
origin z, antara orang yang terdeteksi dan kamera. Sedangkan nilai z positif menunjukkan bahwa penanda berada di belakang origin z.
Nilai Z tidak memiliki rentang tetap. Namun, karena sistem koordinat z berada dalam ruang gambar
input, nilai z dapat digunakan untuk menyimpulkan jarak relatif antar-titik penanda, yang diukur dalam
piksel gambar.
Catatan: Nilai Z kurang akurat dibandingkan nilai x dan y. Selain itu, nilai z untuk penanda wajah
tidak dihitung, jadi abaikan saja.
Pernyataan
Objective-C
@property (nonatomic, readonly) MLKVision3DPoint *_Nonnull position;
-
Kemungkinan, dalam rentang [0, 1], penanda tersebut benar-benar berada dalam bingkai gambar.
Pernyataan
Objective-C
@property (nonatomic, readonly) float inFrameLikelihood;
-
Pernyataan
Objective-C
- (nonnull instancetype)init;
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-08 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-11-08 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"]]