DetectedFace

data class DetectedFace(val boundingBox: Rect, val trackingId: Int, val rightEyeOpenProbability: Float, val leftEyeOpenProbability: Float, val smilingProbability: Float, val headEulerAngleX: Float, val headEulerAngleY: Float, val headEulerAngleZ: Float, val landmarks: List<FaceLandmark>, val contours: List<FaceContour>)

MLKit face detection result object copy of the recognized face data and facial features as detected.

Constructors

Link copied to clipboard
constructor(boundingBox: Rect, trackingId: Int, rightEyeOpenProbability: Float, leftEyeOpenProbability: Float, smilingProbability: Float, headEulerAngleX: Float, headEulerAngleY: Float, headEulerAngleZ: Float, landmarks: List<FaceLandmark>, contours: List<FaceContour>)

Properties

Link copied to clipboard

MLKit face detection result object copy of the rectangle containing the detected face relative to the image in the bitmap coordinate system.

Link copied to clipboard

MLKit face detection result object copy of facial contours recognized. Constant size 15 types.

Link copied to clipboard

MLKit face detection result object copy of the roll angle of the face. Degrees. Indicates the rotation of the face about the horizontal axis of the image. Positive x euler angle is when the face is turned upward in the image that is being processed.

Link copied to clipboard

MLKit face detection result object copy of the yaw angle of the face. Degrees. Indicates the rotation of the face about the vertical axis of the image. Positive y euler angle is when the face is turned towards the right side of the image that is being processed.

Link copied to clipboard

MLKit face detection result object copy of the pitch angle of the face. Degrees. Indicates the rotation of the face about the axis pointing out of the image. Positive z euler angle is a counter-clockwise rotation within the image plane.

Link copied to clipboard

MLKit face detection result object copy of facial landmarks recognized. Constant size 10 types.

Link copied to clipboard

MLKit face detection result object copy of the probability of the left eye being open 0-1f.

Link copied to clipboard

MLKit face detection result object copy of the probability of the right eye being open 0-1f.

Link copied to clipboard

MLKit face detection result object copy of the probability of the face being smiling 0-1f.

Link copied to clipboard

MLKit face detection result object copy of the tracking ID of the recognized face (out of multiple).