Trait opencv::prelude::DPMDetectorTrait
source · pub trait DPMDetectorTrait: DPMDetectorTraitConst {
// Required method
fn as_raw_mut_DPMDetector(&mut self) -> *mut c_void;
// Provided method
fn detect(
&mut self,
image: &mut Mat,
objects: &mut Vector<DPMDetector_ObjectDetection>
) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::dpm::DPMDetector
Required Methods§
fn as_raw_mut_DPMDetector(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect(
&mut self,
image: &mut Mat,
objects: &mut Vector<DPMDetector_ObjectDetection>
) -> Result<()>
fn detect( &mut self, image: &mut Mat, objects: &mut Vector<DPMDetector_ObjectDetection> ) -> Result<()>
Find rectangular regions in the given image that are likely to contain objects of loaded classes (models) and corresponding confidence levels.
Parameters
- image: An image.
- objects: The detections: rectangulars, scores and class IDs.