pub struct FaceState {
pub timestamp: StateTime,
pub present: bool,
pub head_rotation: (f32, f32, f32),
pub emotion: EmotionVector,
pub gaze: GazeState,
pub mouth: MouthState,
pub speaking: bool,
pub confidence: f32,
}Expand description
Complete face state
Fields§
§timestamp: StateTimeTimestamp of this face state
present: boolIs a face detected/present?
head_rotation: (f32, f32, f32)Head rotation (yaw, pitch, roll in radians)
emotion: EmotionVectorEmotion vector
gaze: GazeStateGaze state
mouth: MouthStateMouth state
speaking: boolIs the person speaking?
confidence: f32Confidence of face detection [0.0 - 1.0]
Implementations§
Source§impl FaceState
impl FaceState
Sourcepub fn reduce_to_minimal(&mut self)
pub fn reduce_to_minimal(&mut self)
Reduce to minimal state (for L4 degradation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaceState
impl RefUnwindSafe for FaceState
impl Send for FaceState
impl Sync for FaceState
impl Unpin for FaceState
impl UnsafeUnpin for FaceState
impl UnwindSafe for FaceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more