#[repr(C, packed(1))]pub struct Face {
pub box_confidence: u8,
pub box_left: u8,
pub box_top: u8,
pub box_right: u8,
pub box_bottom: u8,
pub id_confidence: i8,
pub id: Option<PersonID>,
pub is_facing: bool,
}Fields§
§box_confidence: u8Confidence of the box prediction, ranges from 1 to 100.
box_left: u8§box_top: u8§box_right: u8§box_bottom: u8§id_confidence: i8The confidence of “calibrated” identities ranges from 1 to 100, and will be 0 or less if this face is not recognized as any of the calibrated identities or is not the largest face in the frame.
id: Option<PersonID>The ID number of the face, if it is recognized as any of the calibrated identities and is the largest face in the frame. By default, the sensor will not run any recognition until calibration has been performed. After at least one person has been calibrated, the sensor will always run recognition on the largest face present, and assign an ID number if it’s recognized as one that it has been calibrated on.
is_facing: boolIndicates if somebody is looking directly at the device
Note: ID works most reliably when the face is straight on to the sensor