Face.State
class Face.State : Trackable.State
The representation of the current state of Face.
Summary
Public functions |
|
|---|---|
open operator Boolean |
|
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float |
getConfidence(region: FaceConfidenceRegion)Gets the confidence value of the face tracker for the given region. |
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
Map<FaceBlendShapeType, Float> |
|
Face |
self-reference to the object that owns this state |
open TrackingState |
the current |
Public functions
getConfidence
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 |
| 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 |
Public properties
trackingState
open val trackingState: TrackingState
the current androidx.xr.arcore.TrackingState of the face