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 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-alpha06
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.

getConfidence

Added in 1.0.0-alpha06
public final 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
float

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

Throws
kotlin.IllegalArgumentException

if the region does not exist.

getTrackingState

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

the current TrackingState of the face.

hashCode

public int hashCode()

toString

public @NonNull String toString()