Struct opencv::face::StandardCollector
source · pub struct StandardCollector { /* private fields */ }
Expand description
Default predict collector
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
Implementations§
source§impl StandardCollector
impl StandardCollector
sourcepub fn new(threshold_: f64) -> Result<StandardCollector>
pub fn new(threshold_: f64) -> Result<StandardCollector>
sourcepub fn new_def() -> Result<StandardCollector>
pub fn new_def() -> Result<StandardCollector>
Constructor
Parameters
- threshold_: set threshold
Note
This alternative version of [new] function uses the following default values for its arguments:
- threshold_: DBL_MAX
sourcepub fn create_def() -> Result<Ptr<StandardCollector>>
pub fn create_def() -> Result<Ptr<StandardCollector>>
Static constructor
Parameters
- threshold: set threshold
Note
This alternative version of [create] function uses the following default values for its arguments:
- threshold: DBL_MAX
Trait Implementations§
source§impl Boxed for StandardCollector
impl Boxed for StandardCollector
source§impl Debug for StandardCollector
impl Debug for StandardCollector
source§impl Drop for StandardCollector
impl Drop for StandardCollector
source§impl From<StandardCollector> for PredictCollector
impl From<StandardCollector> for PredictCollector
source§fn from(s: StandardCollector) -> Self
fn from(s: StandardCollector) -> Self
Converts to this type from the input type.
source§impl PredictCollectorTrait for StandardCollector
impl PredictCollectorTrait for StandardCollector
source§impl PredictCollectorTraitConst for StandardCollector
impl PredictCollectorTraitConst for StandardCollector
fn as_raw_PredictCollector(&self) -> *const c_void
source§impl StandardCollectorTraitConst for StandardCollector
impl StandardCollectorTraitConst for StandardCollector
fn as_raw_StandardCollector(&self) -> *const c_void
source§fn get_min_label(&self) -> Result<i32>
fn get_min_label(&self) -> Result<i32>
Returns label with minimal distance
source§fn get_min_dist(&self) -> Result<f64>
fn get_min_dist(&self) -> Result<f64>
Returns minimal distance value
source§impl TryFrom<PredictCollector> for StandardCollector
impl TryFrom<PredictCollector> for StandardCollector
impl Send for StandardCollector
Auto Trait Implementations§
impl RefUnwindSafe for StandardCollector
impl !Sync for StandardCollector
impl Unpin for StandardCollector
impl UnwindSafe for StandardCollector
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