pub struct DetectedFace {
pub bbox: (f32, f32, f32, f32),
pub bbox_normalized: (f32, f32, f32, f32),
pub confidence: f32,
pub landmarks: [(f32, f32); 5],
pub aligned_face: Option<RgbImage>,
}Expand description
A detected face with bounding box and landmarks
Fields§
§bbox: (f32, f32, f32, f32)Bounding box (x, y, width, height) in pixel coordinates
bbox_normalized: (f32, f32, f32, f32)Normalized bounding box (0-1 range)
confidence: f32Detection confidence (0-1)
landmarks: [(f32, f32); 5]5-point landmarks: left_eye, right_eye, nose, left_mouth, right_mouth Each point is (x, y) in pixel coordinates
aligned_face: Option<RgbImage>Cropped and aligned face image (112x112)
Trait Implementations§
Source§impl Clone for DetectedFace
impl Clone for DetectedFace
Source§fn clone(&self) -> DetectedFace
fn clone(&self) -> DetectedFace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DetectedFace
impl RefUnwindSafe for DetectedFace
impl Send for DetectedFace
impl Sync for DetectedFace
impl Unpin for DetectedFace
impl UnsafeUnpin for DetectedFace
impl UnwindSafe for DetectedFace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more