Face.State


class Face.State : Trackable.State


The representation of the current state of Face.

Summary

Public functions

open operator Boolean
equals(other: Any?)
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float

Gets the confidence value of the face tracker for the given region.

open Int
open String

Public properties

Map<FaceBlendShapeTypeFloat>
Pose?

the pose at the center of the face, defined to have the origin located behind the nose and between the two cheek bones

Mesh?

the polygonal representation of the face as observed by the perception system

Map<FaceMeshRegionPose?>

Map of Pose values on the Face for each FaceMeshRegion

open TrackingState

the current TrackingState of the face.

Public functions

equals

open operator fun equals(other: Any?): Boolean

getConfidence

Added in 1.0.0-alpha12
fun getConfidence(region: FaceConfidenceRegion): @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float

Gets the confidence value of the face tracker for the given region.

Parameters
region: FaceConfidenceRegion

the FaceConfidenceRegion to get the confidence value for

Returns
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float

the confidence value in the range [0.0, 1.0] of the face tracker for the given region

Throws
IllegalArgumentException

if the region does not exist

IllegalStateException

if the Face does not provide confidence values

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

blendShapes

Added in 1.0.0-alpha12
val blendShapesMap<FaceBlendShapeTypeFloat>

centerPose

Added in 1.0.0-alpha12
val centerPosePose?

the pose at the center of the face, defined to have the origin located behind the nose and between the two cheek bones

Z+ is forward out of the nose, Y+ is upwards, and X+ is towards the left. The units are in meters.

centerPose will be null if the Session is not configured with FaceTrackingMode.MESHES.

mesh

Added in 1.0.0-alpha12
val meshMesh?

the polygonal representation of the face as observed by the perception system

mesh will be null if the Session is not configured with FaceTrackingMode.MESHES.

regionPoses

Added in 1.0.0-alpha12
val regionPosesMap<FaceMeshRegionPose?>

Map of Pose values on the Face for each FaceMeshRegion

Each Pose value in the Map will be null if the Session is not configured with FaceTrackingMode.MESHES.

trackingState

open val trackingStateTrackingState

the current TrackingState of the face.