Builder

class Builder

Properties

Link copied to clipboard

The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.

Link copied to clipboard
var beard: Beard?

Indicates whether or not the face has a beard, and the confidence level in the determination.

Link copied to clipboard

Bounding box of the face. Default attribute.

Link copied to clipboard

Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.

Link copied to clipboard

The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.

Link copied to clipboard

Indicates the direction the eyes are gazing in, as defined by pitch and yaw.

Link copied to clipboard

Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.

Link copied to clipboard

Indicates whether or not the eyes on the face are open, and the confidence level in the determination.

Link copied to clipboard

FaceOccluded should return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects. FaceOccluded should return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.

Link copied to clipboard

The predicted gender of a detected face.

Link copied to clipboard

Indicates the location of landmarks on the face. Default attribute.

Link copied to clipboard

Indicates whether or not the mouth on the face is open, and the confidence level in the determination.

Link copied to clipboard

Indicates whether or not the face has a mustache, and the confidence level in the determination.

Link copied to clipboard
var pose: Pose?

Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.

Link copied to clipboard

Identifies image brightness and sharpness. Default attribute.

Link copied to clipboard
var smile: Smile?

Indicates whether or not the face is smiling, and the confidence level in the determination.

Link copied to clipboard

Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.

Functions

Link copied to clipboard
Link copied to clipboard
fun beard(block: Beard.Builder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun pose(block: Pose.Builder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
fun smile(block: Smile.Builder.() -> Unit)
Link copied to clipboard