[][src]Trait opencv::dpm::DPMDetector

pub trait DPMDetector {
    fn as_raw_DPMDetector(&self) -> *mut c_void;

    fn is_empty(&self) -> Result<bool> { ... }
fn detect(
        &mut self,
        image: &mut Mat,
        objects: &mut VectorOfObjectDetection
    ) -> Result<()> { ... }
fn get_class_count(&self) -> Result<size_t> { ... } }

This is a C++ abstract class, it provides external user API to work with DPM.

Required methods

Loading content...

Provided methods

fn is_empty(&self) -> Result<bool>

fn detect(
    &mut self,
    image: &mut Mat,
    objects: &mut VectorOfObjectDetection
) -> 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.

fn get_class_count(&self) -> Result<size_t>

Return a count of loaded models (classes).

Loading content...

Implementors

Loading content...