Struct rust_faces::FaceDetectorBuilder
source · pub struct FaceDetectorBuilder { /* private fields */ }Expand description
Builder for loading or downloading and creating face detectors.
Implementations§
source§impl FaceDetectorBuilder
impl FaceDetectorBuilder
sourcepub fn new(detector: FaceDetection) -> Self
pub fn new(detector: FaceDetection) -> Self
sourcepub fn detect_params(self, params: DetectionParams) -> Self
pub fn detect_params(self, params: DetectionParams) -> Self
Set the detection parameters.
sourcepub fn infer_params(self, params: InferParams) -> Self
pub fn infer_params(self, params: InferParams) -> Self
Sets the inference parameters.
sourcepub fn build(&self) -> RustFacesResult<Box<dyn FaceDetector>>
pub fn build(&self) -> RustFacesResult<Box<dyn FaceDetector>>
Builds a new detector.
Auto Trait Implementations§
impl RefUnwindSafe for FaceDetectorBuilder
impl Send for FaceDetectorBuilder
impl Sync for FaceDetectorBuilder
impl Unpin for FaceDetectorBuilder
impl UnwindSafe for FaceDetectorBuilder
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