AI-generated Key Takeaways
-
The PoseLandmark class represents one pose landmark in a detected pose.
-
It includes a nested class summary for landmark types and a constant summary listing various body part landmarks.
-
Public methods allow retrieval of the likelihood a landmark is in the frame, its type, and its 2D and 3D positions.
Represents one pose landmark in a detected pose.
Nested Class Summary
| @interface | PoseLandmark.LandmarkType | Landmark types for pose. | |
Constant Summary
| int | LEFT_ANKLE | The landmark which corresponds to the left ankle. |
| int | LEFT_EAR | The landmark which corresponds to the left ear. |
| int | LEFT_ELBOW | The landmark which corresponds to the left elbow. |
| int | LEFT_EYE | The landmark which corresponds to the left eye. |
| int | LEFT_EYE_INNER | The landmark which corresponds to the inner left eye. |
| int | LEFT_EYE_OUTER | The landmark which corresponds to the outer left eye. |
| int | LEFT_FOOT_INDEX | The landmark which corresponds to the left foot index. |
| int | LEFT_HEEL | The landmark which corresponds to the left heel. |
| int | LEFT_HIP | The landmark which corresponds to the left hip. |
| int | LEFT_INDEX | The landmark which corresponds to the left index finger. |
| int | LEFT_KNEE | The landmark which corresponds to the left knee. |
| int | LEFT_MOUTH | The landmark which corresponds to the left mouth. |
| int | LEFT_PINKY | The landmark which corresponds to the left pinky. |
| int | LEFT_SHOULDER | The landmark which corresponds to the left shoulder. |
| int | LEFT_THUMB | The landmark which corresponds to the left thumb. |
| int | LEFT_WRIST | The landmark which corresponds to the left wrist. |
| int | NOSE | The landmark which corresponds to the nose. |
| int | RIGHT_ANKLE | The landmark which corresponds to the right ankle. |
| int | RIGHT_EAR | The landmark which corresponds to the right ear. |
| int | RIGHT_ELBOW | The landmark which corresponds to the right elbow. |
| int | RIGHT_EYE | The landmark which corresponds to the left eye. |
| int | RIGHT_EYE_INNER | The landmark which corresponds to the inner left eye. |
| int | RIGHT_EYE_OUTER | The landmark which corresponds to the outer left eye. |
| int | RIGHT_FOOT_INDEX | The landmark which corresponds to the right foot index. |
| int | RIGHT_HEEL | The landmark which corresponds to the right heel. |
| int | RIGHT_HIP | The landmark which corresponds to the right hip. |
| int | RIGHT_INDEX | The landmark which corresponds to the right index finger. |
| int | RIGHT_KNEE | The landmark which corresponds to the right knee. |
| int | RIGHT_MOUTH | The landmark which corresponds to the right mouth. |
| int | RIGHT_PINKY | The landmark which corresponds to the right pinky. |
| int | RIGHT_SHOULDER | The landmark which corresponds to the right shoulder. |
| int | RIGHT_THUMB | The landmark which corresponds to the right thumb. |
| int | RIGHT_WRIST | The landmark which corresponds to the right wrist. |
Public Method Summary
| float |
getInFrameLikelihood()
Gets the likelihood that a
PoseLandmark
is within the image frame.
|
| int |
getLandmarkType()
Gets the landmark type for the
PoseLandmark.
|
| PointF |
getPosition()
Gets the 2D position of the
PoseLandmark.
|
| PointF3D |
getPosition3D()
Gets the 3D position of the
PoseLandmark.
|
Inherited Method Summary
Constants
public static final int LEFT_ANKLE
The landmark which corresponds to the left ankle.
public static final int LEFT_EAR
The landmark which corresponds to the left ear.
public static final int LEFT_ELBOW
The landmark which corresponds to the left elbow.
public static final int LEFT_EYE
The landmark which corresponds to the left eye.
public static final int LEFT_EYE_INNER
The landmark which corresponds to the inner left eye.
public static final int LEFT_EYE_OUTER
The landmark which corresponds to the outer left eye.
public static final int LEFT_FOOT_INDEX
The landmark which corresponds to the left foot index.
public static final int LEFT_HEEL
The landmark which corresponds to the left heel.
public static final int LEFT_HIP
The landmark which corresponds to the left hip.
public static final int LEFT_INDEX
The landmark which corresponds to the left index finger.
public static final int LEFT_KNEE
The landmark which corresponds to the left knee.
public static final int LEFT_MOUTH
The landmark which corresponds to the left mouth.
public static final int LEFT_PINKY
The landmark which corresponds to the left pinky.
public static final int LEFT_SHOULDER
The landmark which corresponds to the left shoulder.
public static final int LEFT_THUMB
The landmark which corresponds to the left thumb.
public static final int LEFT_WRIST
The landmark which corresponds to the left wrist.
public static final int NOSE
The landmark which corresponds to the nose.
public static final int RIGHT_ANKLE
The landmark which corresponds to the right ankle.
public static final int RIGHT_EAR
The landmark which corresponds to the right ear.
public static final int RIGHT_ELBOW
The landmark which corresponds to the right elbow.
public static final int RIGHT_EYE
The landmark which corresponds to the left eye.
public static final int RIGHT_EYE_INNER
The landmark which corresponds to the inner left eye.
public static final int RIGHT_EYE_OUTER
The landmark which corresponds to the outer left eye.
public static final int RIGHT_FOOT_INDEX
The landmark which corresponds to the right foot index.
public static final int RIGHT_HEEL
The landmark which corresponds to the right heel.
public static final int RIGHT_HIP
The landmark which corresponds to the right hip.
public static final int RIGHT_INDEX
The landmark which corresponds to the right index finger.
public static final int RIGHT_KNEE
The landmark which corresponds to the right knee.
public static final int RIGHT_MOUTH
The landmark which corresponds to the right mouth.
public static final int RIGHT_PINKY
The landmark which corresponds to the right pinky.
public static final int RIGHT_SHOULDER
The landmark which corresponds to the right shoulder.
public static final int RIGHT_THUMB
The landmark which corresponds to the right thumb.
public static final int RIGHT_WRIST
The landmark which corresponds to the right wrist.
Public Methods
public float getInFrameLikelihood ()
Gets the likelihood that a PoseLandmark
is within the image frame.
It is in range [0.0f, 1.0f].
A lower in-frame-likelihood indicates that the part of the body representing this landmark is likely not visible in the frame. As a result the confidence of this prediction can be considered low.
public int getLandmarkType ()
Gets the landmark type for the PoseLandmark.
public PointF getPosition ()
Gets the 2D position of the PoseLandmark.
The return value is always non-null.
public PointF3D getPosition3D ()
Gets the 3D position of the PoseLandmark.
The return value is always non-null.
More information on the Z value:
- The Z value is an experimental feature that returns an extra Z coordinate along with X and Y. Please note that this value is less accurate than the X and Y values.
- The unit of measure for the Z value is the same as X and Y.
- The smaller the Z value, the closer that landmark is to the camera.
- Different from X and Y, Z does not have a fixed origin in the image space. The Z origin is approximately at the center of the subject’s hips. Z value will be negative if the landmark is in front of the Z origin and will be positive if the landmark is behind the Z origin.
- The Z value does not have a fixed lower or upper bound.