Stay organized with collections
Save and categorize content based on your preferences.
public class FirebaseVisionFaceLandmark extends Object
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.
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 intLEFT_EAR
The midpoint of the subject's left ear tip and left ear lobe.
Constant Value:3
public static final intLEFT_EYE
The center of the subject's left eye cavity.
Constant Value:4
public static final intMOUTH_BOTTOM
The center of the subject's bottom lip.
Constant Value:0
public static final intMOUTH_LEFT
The subject's left mouth corner where the lips meet.
Constant Value:5
public static final intMOUTH_RIGHT
The subject's right mouth corner where the lips meet.
Constant Value:11
public static final intNOSE_BASE
The midpoint between the subject's nostrils where the nose meets the face.
Constant Value:6
public static final intRIGHT_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 intRIGHT_EAR
The midpoint of the subject's right ear tip and right ear lobe.
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.
[[["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 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** ()"]]