Tài liệu tham khảo Khung MLKitPoseDetectionCommon
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tư thế
Mô tả kết quả phát hiện tư thế.
-
Một mảng gồm tất cả địa danh trong tư thế đã phát hiện.
-
-
Trả về mốc tương ứng với một kiểu cho sẵn.
Giá trị trả về
Mốc tương ứng với type
.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003ePose\u003c/code\u003e class in iOS describes the results of pose detection, including the location of body joints.\u003c/p\u003e\n"],["\u003cp\u003eIt provides an array of landmarks representing different body parts, accessible via the \u003ccode\u003elandmarks\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a specific landmark using its type with the \u003ccode\u003elandmark(ofType:)\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePose\u003c/code\u003e object is created internally by the Pose Detection API and cannot be directly instantiated.\u003c/p\u003e\n"]]],["The `Pose` class represents a pose detection result. It provides an array of `landmarks`, which are the individual points detected in the pose. You can access all the landmarks via the `landmarks` property. Additionally, the class includes a method, `landmark(ofType:)`, that allows retrieval of a specific landmark based on its type. Initialization using `-init` is unavailable. The `Pose` class does not allow manual instantiation.\n"],null,["# MLKitPoseDetectionCommon Framework Reference\n\nPose\n====\n\n class Pose : NSObject\n\nDescribes a pose detection result.\n- `\n ``\n ``\n `\n\n ### [landmarks](#/c:objc(cs)MLKPose(py)landmarks)\n\n `\n ` \n An array of all the landmarks in the detected pose. \n\n #### Declaration\n\n Swift \n\n var landmarks: [../Classes/PoseLandmark.html] { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKPose(im)init)\n\n `\n ` \n Unavailable.\n- `\n ``\n ``\n `\n\n ### [landmark(ofType:)](#/c:objc(cs)MLKPose(im)landmarkOfType:)\n\n `\n ` \n Returns the landmark which corresponds to a given type. \n\n #### Declaration\n\n Swift \n\n func landmark(ofType type: ../Type-Definitions.html#/c:MLKPoseLandmark.h@T@MLKPoseLandmarkType) -\u003e ../Classes/PoseLandmark.html\n\n #### Parameters\n\n |--------------|----------------------------------------------------|\n | ` `*type*` ` | The type of the landmark which should be returned. |\n\n #### Return Value\n\n The landmark which corresponds to `type`."]]