pub trait DPMDetectorTrait: DPMDetectorTraitConst {
// Required method
fn as_raw_mut_DPMDetector(&mut self) -> *mut c_void;
// Provided method
fn detect(
&mut self,
image: &mut impl MatTrait,
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 impl MatTrait,
objects: &mut Vector<DPMDetector_ObjectDetection>,
) -> Result<()>
fn detect( &mut self, image: &mut impl MatTrait, 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.