MLKitPoseDetectionCommon Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Pose
Describes a pose detection result.
-
An array of all the landmarks in the detected pose.
-
-
Returns the landmark which corresponds to a given type.
Parameters
type
|
The type of the landmark which should be returned.
|
Return Value
The landmark which corresponds to type
.
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."],[[["\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,["Pose \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 An array of all the landmarks in the detected pose. \n\n Declaration \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 Unavailable.\n- `\n ``\n ``\n `\n\n [landmark(ofType:)](#/c:objc(cs)MLKPose(im)landmarkOfType:)`\n ` \n Returns the landmark which corresponds to a given type. \n\n Declaration \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`."]]