Summary: Constants | Methods | Inherited Methods | [Expand All]
public final class

# Landmark

extends Object

java.lang.Object
↳ | com.google.android.gms.vision.face.Landmark

## Class Overview

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. For example, the `LEFT_EYE` landmark is the subject's left eye, not the eye that is on the left when viewing the image.

## Summary

Constants
int | BOTTOM_MOUTH | The center of the subject's bottom lip.
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_EAR_TIP | Treating the top of the subject's left ear as a circle, this is the point at 45 degrees around the circle in Cartesian coordinates.
int | LEFT_EYE | The center of the subject's left eye cavity.
int | LEFT_MOUTH | The subject's left 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_EAR_TIP | Treating the top of the subject's right ear as a circle, this is the point at 135 degrees around the circle in Cartesian coordinates.
int | RIGHT_EYE | The center of the subject's right eye cavity.
int | RIGHT_MOUTH | The subject's right mouth corner where the lips meet.

Public Methods
PointF | getPosition() Returns the (x, y) position of the landmark where (0, 0) is the upper-left corner of the image.
int | getType() Returns the type of landmark (`LEFT_EYE`, `RIGHT_EYE`, `NOSE_BASE`, etc.).

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
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 BOTTOM_MOUTH

The center of the subject's bottom lip.

Constant Value: 0 (0x00000000)

#### 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 (0x00000001)

#### public static final int LEFT_EAR

The midpoint of the subject's left ear tip and left ear lobe.

Constant Value: 3 (0x00000003)

#### public static final int LEFT_EAR_TIP

Treating the top of the subject's left ear as a circle, this is the point at 45 degrees around the circle in Cartesian coordinates.

Constant Value: 2 (0x00000002)

#### public static final int LEFT_EYE

The center of the subject's left eye cavity.

Constant Value: 4 (0x00000004)

#### public static final int LEFT_MOUTH

The subject's left mouth corner where the lips meet.

Constant Value: 5 (0x00000005)

#### public static final int NOSE_BASE

The midpoint between the subject's nostrils where the nose meets the face.

Constant Value: 6 (0x00000006)

#### 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 (0x00000007)

#### public static final int RIGHT_EAR

The midpoint of the subject's right ear tip and right ear lobe.

Constant Value: 9 (0x00000009)

#### public static final int RIGHT_EAR_TIP

Treating the top of the subject's right ear as a circle, this is the point at 135 degrees around the circle in Cartesian coordinates.

Constant Value: 8 (0x00000008)

#### public static final int RIGHT_EYE

The center of the subject's right eye cavity.

Constant Value: 10 (0x0000000a)

#### public static final int RIGHT_MOUTH

The subject's right mouth corner where the lips meet.

Constant Value: 11 (0x0000000b)

## Public Methods

#### public PointF getPosition ()

Returns the (x, y) position of the landmark where (0, 0) is the upper-left corner of the image. The point is guaranteed to be within the bounds of the image.

##### Returns

- the position of the landmark

#### public int getType ()

Returns the type of landmark (`LEFT_EYE`, `RIGHT_EYE`, `NOSE_BASE`, etc.).

##### Returns

- the type of landmark