FirebaseVisionFace

public class FirebaseVisionFace extends Object

Represents a face detected by FirebaseVisionFaceDetector.

Constant Summary

int INVALID_ID Invalid tracking ID.
float UNCOMPUTED_PROBABILITY Default value for certain face features.

Public Method Summary

Rect
getBoundingBox()
Returns the axis-aligned bounding rectangle of the detected face.
FirebaseVisionFaceContour
getContour(int contourType)
Gets contour based on the provided FirebaseVisionFaceContour.ContourType type.
float
getHeadEulerAngleY()
Returns the rotation of the face about the vertical axis of the image.
float
getHeadEulerAngleZ()
Returns the rotation of the face about the axis pointing out of the image.
FirebaseVisionFaceLandmark
getLandmark(int landmarkType)
Gets landmark based on the provided FirebaseVisionFaceLandmark.LandmarkType type.
float
getLeftEyeOpenProbability()
Returns a value between 0.0 and 1.0 giving a probability that the face's left eye is open.
float
getRightEyeOpenProbability()
Returns a value between 0.0 and 1.0 giving a probability that the face's right eye is open.
float
getSmilingProbability()
Returns a value between 0.0 and 1.0 giving a probability that the face is smiling.
int
getTrackingId()
Returns the tracking ID if the tracking is enabled.
String

Inherited Method Summary

Constants

public static final int INVALID_ID

Invalid tracking ID.

Constant Value: -1

public static final float UNCOMPUTED_PROBABILITY

Default value for certain face features. See getRightEyeOpenProbability(),