Face.State
public final class Face.State implements Trackable.State
The representation of the current state of Face.
Summary
Public methods |
|
|---|---|
boolean |
|
final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull Float> |
|
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. |
final @NonNull Face |
getOwner()self-reference to the object that owns this state. |
@NonNull TrackingState |
the current |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
getBlendShapes
public final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull Float> getBlendShapes()
getConfidence
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 |
| Returns | |
|---|---|
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float |
the confidence value in the range |
| Throws | |
|---|---|
IllegalArgumentException |
if the region does not exist |
IllegalStateException |
if the Face does not provide confidence values |
getOwner
public final @NonNull Face getOwner()
self-reference to the object that owns this state.
getTrackingState
public @NonNull TrackingState getTrackingState()
the current androidx.xr.arcore.TrackingState of the face