[][src]Trait opencv::hub_prelude::PredictCollector

pub trait PredictCollector {
    pub fn as_raw_PredictCollector(&self) -> *const c_void;
pub fn as_raw_mut_PredictCollector(&mut self) -> *mut c_void; pub fn init(&mut self, size: size_t) -> Result<()> { ... }
pub fn collect(&mut self, label: i32, dist: f64) -> Result<bool> { ... } }

Abstract base class for all strategies of prediction result handling

Required methods

Loading content...

Provided methods

pub fn init(&mut self, size: size_t) -> Result<()>[src]

Interface method called by face recognizer before results processing

Parameters

  • size: total size of prediction evaluation that recognizer could perform

pub fn collect(&mut self, label: i32, dist: f64) -> Result<bool>[src]

Interface method called by face recognizer for each result

Parameters

  • label: current prediction label
  • dist: current prediction distance (confidence)
Loading content...

Implementors

Loading content...