pub trait WBDetector: WBDetectorConst {
    fn as_raw_mut_WBDetector(&mut self) -> *mut c_void;

    fn read(&mut self, node: &FileNode) -> Result<()> { ... }
    fn train(&mut self, pos_samples: &str, neg_imgs: &str) -> Result<()> { ... }
    fn detect(
        &mut self,
        img: &Mat,
        bboxes: &mut Vector<Rect>,
        confidences: &mut Vector<f64>
    ) -> Result<()> { ... } }

Required Methods

Provided Methods

Read detector from FileNode.

Parameters
  • node: FileNode for input

Train WaldBoost detector

Parameters
  • pos_samples: Path to directory with cropped positive samples
  • neg_imgs: Path to directory with negative (background) images

Detect objects on image using WaldBoost detector

Parameters
  • img: Input image for detection
  • bboxes: Bounding boxes coordinates output vector
  • confidences: Confidence values for bounding boxes output vector

Implementations

Create instance of WBDetector

Implementors