Face.State


public final class Face.State


The representation of the current state of Face.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull Float>

Represents the blend shapes of the face.

final @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float

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

final @NonNull TrackingState

the current TrackingState of the face.

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getBlendShapes

Added in 1.0.0-alpha09
public final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull FloatgetBlendShapes()

Represents the blend shapes of the face.

Returns
@NonNull Map<@NonNull FaceBlendShapeType, @NonNull Float>

a map of FaceBlendShapeType to the corresponding blend shape value in the range [0.0, 1.0]. If the face does not provide blend shape values, this will be an empty map.

getConfidence

Added in 1.0.0-alpha09
public final @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float getConfidence(@NonNull FaceConfidenceRegion region)

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

Parameters
@NonNull FaceConfidenceRegion region

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
kotlin.IllegalArgumentException

if the region does not exist.

kotlin.IllegalStateException

if the Face does not provide confidence values.

getTrackingState

Added in 1.0.0-alpha09
public final @NonNull TrackingState getTrackingState()

the current TrackingState of the face.

hashCode

public int hashCode()

toString

public @NonNull String toString()