Represent a face contour. A contour is a list of points on a detected face, such as the 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.
Nested Class Summary
@interface | FaceContour.ContourType | Contour types for face. |
Constant Summary
int | FACE | The outline of the subject's face. |
int | LEFT_CHEEK | The center of the left cheek. |
int | LEFT_EYE | The outline of the subject's left eye cavity. |
int | LEFT_EYEBROW_BOTTOM | The bottom outline of the subject's left eyebrow. |
int | LEFT_EYEBROW_TOP | The top outline of the subject's left eyebrow. |
int | LOWER_LIP_BOTTOM | The bottom outline of the subject's lower lip. |
int | LOWER_LIP_TOP | The top outline of the subject's lower lip. |
int | NOSE_BOTTOM | The outline of the subject's nose bridge. |
int | NOSE_BRIDGE | The outline of the subject's nose bridge. |
int | RIGHT_CHEEK | The center of the right cheek. |
int | RIGHT_EYE | The outline of the subject's right eye cavity. |
int | RIGHT_EYEBROW_BOTTOM | The bottom outline of the subject's right eyebrow. |
int | RIGHT_EYEBROW_TOP | The top outline of the subject's right eyebrow. |
int | UPPER_LIP_BOTTOM | The bottom outline of the subject's upper lip. |
int | UPPER_LIP_TOP | The top outline of the subject's upper lip. |
Public Method Summary
int |
getFaceContourType()
Gets the
FaceContour.ContourType
type.
|
List<PointF> |
getPoints()
Gets a list of 2D points for this face contour, where (0, 0) is the upper-left
corner of the image.
|
String |
toString()
|
Inherited Method Summary
Constants
public static final int FACE
The outline of the subject's face.
public static final int LEFT_CHEEK
The center of the left cheek.
public static final int LEFT_EYE
The outline of the subject's left eye cavity.
public static final int LEFT_EYEBROW_BOTTOM
The bottom outline of the subject's left eyebrow.
public static final int LEFT_EYEBROW_TOP
The top outline of the subject's left eyebrow.
public static final int LOWER_LIP_BOTTOM
The bottom outline of the subject's lower lip.
public static final int LOWER_LIP_TOP
The top outline of the subject's lower lip.
public static final int NOSE_BOTTOM
The outline of the subject's nose bridge.
public static final int NOSE_BRIDGE
The outline of the subject's nose bridge.
public static final int RIGHT_CHEEK
The center of the right cheek.
public static final int RIGHT_EYE
The outline of the subject's right eye cavity.
public static final int RIGHT_EYEBROW_BOTTOM
The bottom outline of the subject's right eyebrow.
public static final int RIGHT_EYEBROW_TOP
The top outline of the subject's right eyebrow.
public static final int UPPER_LIP_BOTTOM
The bottom outline of the subject's upper lip.
public static final int UPPER_LIP_TOP
The top outline of the subject's upper lip.
Public Methods
public int getFaceContourType ()
Gets the FaceContour.ContourType
type.
public List<PointF> getPoints ()
Gets a list of 2D points for this face contour, where (0, 0) is the upper-left corner of the image. The point is guaranteed to be within the bounds of the image.