FirebaseVisionFaceLandmark
Stay organized with collections
Save and categorize content based on your preferences.
This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.
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.
Constant Summary
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. |
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()
|
Constants
public static final int
LEFT_CHEEK
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.
Constant Value: 1
public static final int
LEFT_EAR
The midpoint of the subject's left ear tip and left ear lobe.
Constant Value: 3
public static final int
LEFT_EYE
The center of the subject's left eye cavity.
Constant Value: 4
public static final int
MOUTH_BOTTOM
The center of the subject's bottom lip.
Constant Value: 0
public static final int
MOUTH_LEFT
The subject's left mouth corner where the lips meet.
Constant Value: 5
public static final int
MOUTH_RIGHT
The subject's right mouth corner where the lips meet.
Constant Value: 11
public static final int
NOSE_BASE
The midpoint between the subject's nostrils where the nose meets the face.
Constant Value: 6
public static final int
RIGHT_CHEEK
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.
Constant Value: 7
public static final int
RIGHT_EAR
The midpoint of the subject's right ear tip and right ear lobe.
Constant Value: 9
public static final int
RIGHT_EYE
The center of the subject's right eye cavity.
Constant Value: 10
Public Methods
public int getLandmarkType ()
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.
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 2020-08-14 UTC.
[null,null,["Last updated 2020-08-14 UTC."],[],[],null,["# FirebaseVisionFaceLandmark\n\npublic class **FirebaseVisionFaceLandmark** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n**This class is deprecated.** \n\nThe standalone ML Kit SDK replaces this API. For more information, refer to the [migration guide](//developers.google.com/ml-kit/migration).\n\nRepresent a face landmark. A landmark is a point on a detected face, such as an eye, nose,\nor mouth.\n\nWhen 'left' and 'right' are used, they are relative to the subject in the image. For\nexample, the [LEFT_EYE](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#LEFT_EYE) landmark is the subject's left eye, not the eye that is on the left when\nviewing the image. \n\n### Nested Class Summary\n\n|------------|---|---|--------------------------|\n| @interface | [FirebaseVisionFaceLandmark.LandmarkType](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark.LandmarkType) || Landmark types for face. |\n\n### Constant Summary\n\n|-----|--------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| int | [LEFT_CHEEK](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#LEFT_CHEEK) | The midpoint between the subject's left mouth corner and the outer corner of the subject's left eye. |\n| int | [LEFT_EAR](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#LEFT_EAR) | The midpoint of the subject's left ear tip and left ear lobe. |\n| int | [LEFT_EYE](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#LEFT_EYE) | The center of the subject's left eye cavity. |\n| int | [MOUTH_BOTTOM](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#MOUTH_BOTTOM) | The center of the subject's bottom lip. |\n| int | [MOUTH_LEFT](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#MOUTH_LEFT) | The subject's left mouth corner where the lips meet. |\n| int | [MOUTH_RIGHT](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#MOUTH_RIGHT) | The subject's right mouth corner where the lips meet. |\n| int | [NOSE_BASE](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#NOSE_BASE) | The midpoint between the subject's nostrils where the nose meets the face. |\n| int | [RIGHT_CHEEK](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#RIGHT_CHEEK) | The midpoint between the subject's right mouth corner and the outer corner of the subject's right eye. |\n| int | [RIGHT_EAR](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#RIGHT_EAR) | The midpoint of the subject's right ear tip and right ear lobe. |\n| int | [RIGHT_EYE](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#RIGHT_EYE) | The center of the subject's right eye cavity. |\n\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getLandmarkType](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#getLandmarkType())() Gets the [FirebaseVisionFaceLandmark.LandmarkType](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark.LandmarkType) type. |\n| [FirebaseVisionPoint](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionPoint) | [getPosition](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#getPosition())() Gets a 2D point for landmark position, where (0, 0) is the upper-left corner of the image. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark#toString())() |\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\nConstants\n---------\n\n#### public static final int\n**LEFT_CHEEK**\n\nThe midpoint between the subject's left mouth corner and the outer corner of the\nsubject's left eye. For full profile faces, this becomes the centroid of the nose base,\nnose tip, left ear lobe and left ear tip. \nConstant Value: 1 \n\n#### public static final int\n**LEFT_EAR**\n\nThe midpoint of the subject's left ear tip and left ear lobe. \nConstant Value: 3 \n\n#### public static final int\n**LEFT_EYE**\n\nThe center of the subject's left eye cavity. \nConstant Value: 4 \n\n#### public static final int\n**MOUTH_BOTTOM**\n\nThe center of the subject's bottom lip. \nConstant Value: 0 \n\n#### public static final int\n**MOUTH_LEFT**\n\nThe subject's left mouth corner where the lips meet. \nConstant Value: 5 \n\n#### public static final int\n**MOUTH_RIGHT**\n\nThe subject's right mouth corner where the lips meet. \nConstant Value: 11 \n\n#### public static final int\n**NOSE_BASE**\n\nThe midpoint between the subject's nostrils where the nose meets the face. \nConstant Value: 6 \n\n#### public static final int\n**RIGHT_CHEEK**\n\nThe midpoint between the subject's right mouth corner and the outer corner of the\nsubject's right eye. For full profile faces, this becomes the centroid of the nose\nbase, nose tip, right ear lobe and right ear tip. \nConstant Value: 7 \n\n#### public static final int\n**RIGHT_EAR**\n\nThe midpoint of the subject's right ear tip and right ear lobe. \nConstant Value: 9 \n\n#### public static final int\n**RIGHT_EYE**\n\nThe center of the subject's right eye cavity. \nConstant Value: 10\n\nPublic Methods\n--------------\n\n#### public int **getLandmarkType** ()\n\nGets the [FirebaseVisionFaceLandmark.LandmarkType](/docs/reference/android/com/google/firebase/ml/vision/face/FirebaseVisionFaceLandmark.LandmarkType) type. \n\n#### public [FirebaseVisionPoint](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionPoint)\n**getPosition** ()\n\nGets a 2D point for landmark position, where (0, 0) is the upper-left corner of the\nimage. The point is guaranteed to be within the bounds of the image. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]