Represent a face landmark. A landmark is a point on a detected face, such as an eye, nose, or mouth.
When 'left' and 'right' are used, they are relative to the subject in the image. For
example, the LEFT_EYE
landmark is the subject's left eye, not the eye that is on the left when viewing the
image.
| @interface | FaceLandmark.LandmarkType | Landmark types for face. | |
| int | LEFT_CHEEK | The midpoint between the subject's left mouth corner and the outer corner of the subject's left eye. |
| int | LEFT_EAR | The midpoint of the subject's left ear tip and left ear lobe. |
| int | LEFT_EYE | The center of the subject's left eye cavity. |
| int | MOUTH_BOTTOM | The center of the subject's bottom lip. |
| int | MOUTH_LEFT | The subject's left mouth corner where the lips meet. |
| int | MOUTH_RIGHT | The subject's right mouth corner where the lips meet. |
| int | NOSE_BASE | The midpoint between the subject's nostrils where the nose meets the face. |
| int | RIGHT_CHEEK | The midpoint between the subject's right mouth corner and the outer corner of the subject's right eye. |
| int | RIGHT_EAR | The midpoint of the subject's right ear tip and right ear lobe. |
| int | RIGHT_EYE | The center of the subject's right eye cavity. |
| int |
getLandmarkType()
Gets the
FaceLandmark.LandmarkType type.
|
| PointF |
getPosition()
Gets a 2D point for landmark position, where (0, 0) is the upper-left corner of
the image.
|
| String |
toString()
|
The midpoint between the subject's left mouth corner and the outer corner of the subject's left eye. For full profile faces, this becomes the centroid of the nose base, nose tip, left ear lobe and left ear tip.
The midpoint of the subject's left ear tip and left ear lobe.
The center of the subject's left eye cavity.
The center of the subject's bottom lip.
The subject's left mouth corner where the lips meet.
The subject's right mouth corner where the lips meet.
The midpoint between the subject's nostrils where the nose meets the face.
The midpoint between the subject's right mouth corner and the outer corner of the subject's right eye. For full profile faces, this becomes the centroid of the nose base, nose tip, right ear lobe and right ear tip.
The midpoint of the subject's right ear tip and right ear lobe.
The center of the subject's right eye cavity.
Gets the FaceLandmark.LandmarkType
type.
Gets a 2D point for landmark position, where (0, 0) is the upper-left corner of the image. The point is guaranteed to be within the bounds of the image.