Struct FaceIdentification
pub struct FaceIdentification(/* private fields */);
Expand description
General face identification functionality.
Implementations§
§impl FaceIdentification
impl FaceIdentification
pub fn get_face_id(&self, person_box: &BoxPrediction) -> Result<FaceID, Error>
pub fn get_face_id(&self, person_box: &BoxPrediction) -> Result<FaceID, Error>
Retrieve the FaceID that belongs to a person box.
Retrieves the FaceID given a person box from the most recent video frame.
This function should not be called directly after restoring from a
previous state through VideoIntelligence::restore_state
.
This function should not be called with results of
VideoIntelligence::single_image
calls.
§Errors
Error::InvalidBox
Error::NoBoxMatch
pub fn get_person_box_from_face_box(
&self,
face_box: &BoxPrediction,
) -> Result<BoxPrediction, Error>
pub fn get_person_box_from_face_box( &self, face_box: &BoxPrediction, ) -> Result<BoxPrediction, Error>
pub fn get_face_box_from_person_box(
&self,
person_box: &BoxPrediction,
) -> Result<BoxPrediction, Error>
pub fn get_face_box_from_person_box( &self, person_box: &BoxPrediction, ) -> Result<BoxPrediction, Error>
pub fn embedding_version(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaceIdentification
impl RefUnwindSafe for FaceIdentification
impl !Send for FaceIdentification
impl !Sync for FaceIdentification
impl Unpin for FaceIdentification
impl UnwindSafe for FaceIdentification
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