VisionFace
Represents a face returned from faceDetectorProcessImage()
.
Properties
boundingBox
</>Returns the axis-aligned bounding rectangle of the detected face.
boundingBox: VisionRectangle;
faceContours
</>Represent a face contour. A contour is a list of points on a detected face, such as the mouth.
faceContours: VisionFaceContour[];
headEulerAngleY
</>Returns the rotation of the face about the vertical axis of the image. Positive euler y is when the face turns toward the right side of the of the image that is being processed.
headEulerAngleY: number;
headEulerAngleZ
</>Returns the rotation of the face about the axis pointing out of the image. Positive euler z is a counter-clockwise rotation within the image plane.
headEulerAngleZ: number;
leftEyeOpenProbability
</>Returns a value between 0.0 and 1.0 giving a probability that the face's left eye is open.
leftEyeOpenProbability: number;
rightEyeOpenProbability
</>Returns a value between 0.0 and 1.0 giving a probability that the face's right eye is open.
rightEyeOpenProbability: number;
smilingProbability
</>Returns a value between 0.0 and 1.0 giving a probability that the face is smiling.
smilingProbability: number;