[−][src]Trait opencv::hub_prelude::WBDetector
WaldBoost detector
Required methods
pub fn as_raw_WBDetector(&self) -> *const c_void
[src]
pub fn as_raw_mut_WBDetector(&mut self) -> *mut c_void
[src]
Provided methods
pub fn read(&mut self, node: &FileNode) -> Result<()>
[src]
pub fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn train(&mut self, pos_samples: &str, neg_imgs: &str) -> Result<()>
[src]
Train WaldBoost detector
Parameters
- pos_samples: Path to directory with cropped positive samples
- neg_imgs: Path to directory with negative (background) images
pub fn detect(
&mut self,
img: &Mat,
bboxes: &mut Vector<Rect>,
confidences: &mut Vector<f64>
) -> Result<()>
[src]
&mut self,
img: &Mat,
bboxes: &mut Vector<Rect>,
confidences: &mut Vector<f64>
) -> 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
Implementations
impl<'_> dyn WBDetector + '_
[src]
pub fn create() -> Result<Ptr<dyn WBDetector>>
[src]
Create instance of WBDetector