#[repr(C)]pub struct FaceDetectionResult {
pub bbox_x: f32,
pub bbox_y: f32,
pub bbox_w: f32,
pub bbox_h: f32,
pub confidence: f32,
pub landmarks: [f32; 10],
pub embedding: [f32; 512],
}Expand description
Single face detection + recognition result (flat, safe for CGO memcpy).
Fields§
§bbox_x: f32Bounding box top-left X (pixels).
bbox_y: f32Bounding box top-left Y (pixels).
bbox_w: f32Bounding box width (pixels).
bbox_h: f32Bounding box height (pixels).
confidence: f32Detection confidence in [0.0, 1.0].
landmarks: [f32; 10]5 facial landmarks: [x0,y0, x1,y1, …, x4,y4] (10 floats).
embedding: [f32; 512]512-dimensional L2-normalized embedding.
Trait Implementations§
Source§impl Clone for FaceDetectionResult
impl Clone for FaceDetectionResult
Source§fn clone(&self) -> FaceDetectionResult
fn clone(&self) -> FaceDetectionResult
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 moreSource§impl Debug for FaceDetectionResult
impl Debug for FaceDetectionResult
impl Copy for FaceDetectionResult
Auto Trait Implementations§
impl Freeze for FaceDetectionResult
impl RefUnwindSafe for FaceDetectionResult
impl Send for FaceDetectionResult
impl Sync for FaceDetectionResult
impl Unpin for FaceDetectionResult
impl UnsafeUnpin for FaceDetectionResult
impl UnwindSafe for FaceDetectionResult
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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