Pose
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Returns all the detected PoseLandmark
s.
This list is always non-null but could be empty if no landmark is detected.
The returned list is immutable.
public PoseLandmark
getPoseLandmark (int
poseLandmarkType)
Returns detected PoseLandmark
for given PoseLandmark.LandmarkType
.
Can be null
if no landmark is detected. Note that it is either all the
landmarks are detected or none of them are. Landmarks that are not actually visible in
the input image could still be returned with coordinates but will likely have low
in-frame-likelihood indicating they are outside the frame.
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePose\u003c/code\u003e objects are the result of pose detection using ML Kit's PoseDetection API.\u003c/p\u003e\n"],["\u003cp\u003eYou can access all detected pose landmarks through the \u003ccode\u003egetAllPoseLandmarks()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eIndividual landmarks can be retrieved using the \u003ccode\u003egetPoseLandmark()\u003c/code\u003e method by specifying the desired landmark type.\u003c/p\u003e\n"],["\u003cp\u003eLandmarks may be detected even if they're not visible in the image, potentially indicating an out-of-frame position.\u003c/p\u003e\n"]]],["The `Pose` class, a result of `PoseDetection`, provides methods to access detected `PoseLandmark`s. `getAllPoseLandmarks()` returns a non-null, immutable list of all detected landmarks, which can be empty. `getPoseLandmark(int poseLandmarkType)` returns a specific landmark based on its type, or `null` if not detected. If a landmark is detected all other landmark are detected, some landmarks might have low in-frame likelihood if they are not visible.\n"],null,["# Pose\n\npublic class **Pose** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nResult of [PoseDetection](/android/reference/com/google/mlkit/vision/pose/PoseDetection). \n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)\\\u003e | [getAllPoseLandmarks](/android/reference/com/google/mlkit/vision/pose/Pose#getAllPoseLandmarks())() Returns all the detected [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)s. |\n| [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark) | [getPoseLandmark](/android/reference/com/google/mlkit/vision/pose/Pose#getPoseLandmark(int))(int poseLandmarkType) Returns detected [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark) for given [PoseLandmark.LandmarkType](/android/reference/com/google/mlkit/vision/pose/PoseLandmark.LandmarkType). |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)\\\u003e\n**getAllPoseLandmarks** ()\n\nReturns all the detected [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)s.\n\nThis list is always non-null but could be empty if no landmark is detected.\n\nThe returned list is immutable. \n\n#### public [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)\n**getPoseLandmark** (int poseLandmarkType)\n\nReturns detected [PoseLandmark](/android/reference/com/google/mlkit/vision/pose/PoseLandmark)\nfor given [PoseLandmark.LandmarkType](/android/reference/com/google/mlkit/vision/pose/PoseLandmark.LandmarkType).\n\nCan be `null` if no landmark is detected. Note that it is either all the\nlandmarks are detected or none of them are. Landmarks that are not actually visible in\nthe input image could still be returned with coordinates but will likely have low\nin-frame-likelihood indicating they are outside the frame."]]