[][src]Trait opencv::xobjdetect::WBDetector

pub trait WBDetector {
    fn as_raw_WBDetector(&self) -> *mut c_void;

    fn read(&mut self, node: &FileNode) -> Result<()> { ... }
fn write(&self, fs: &mut FileStorage) -> Result<()> { ... }
fn train(&mut self, pos_samples: &str, neg_imgs: &str) -> Result<()> { ... }
fn detect(
        &mut self,
        img: &Mat,
        bboxes: &mut VectorOfRect,
        confidences: &mut VectorOfdouble
    ) -> Result<()> { ... } }

WaldBoost detector

Required methods

Loading content...

Provided methods

fn read(&mut self, node: &FileNode) -> Result<()>

Read detector from FileNode.

Parameters

  • node: FileNode for input

fn write(&self, fs: &mut FileStorage) -> Result<()>

Write detector to FileStorage.

Parameters

  • fs: FileStorage for output

fn train(&mut self, pos_samples: &str, neg_imgs: &str) -> Result<()>

Train WaldBoost detector

Parameters

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

fn detect(
    &mut self,
    img: &Mat,
    bboxes: &mut VectorOfRect,
    confidences: &mut VectorOfdouble
) -> Result<()>

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
Loading content...

Methods

impl<'_> dyn WBDetector + '_[src]

pub fn create() -> Result<PtrOfWBDetector>[src]

Create instance of WBDetector

Implementors

Loading content...