Skip to main content

ObjectDetector

Trait ObjectDetector 

Source
pub trait ObjectDetector {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn detect(
        &mut self,
        image: &RgbImage,
    ) -> Result<Vec<Detection>, Self::Error>;
}
Expand description

Finds objects in one image. The tracker only needs the resulting Detections, so any detector, learned or replayed, plugs in here.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn detect(&mut self, image: &RgbImage) -> Result<Vec<Detection>, Self::Error>

The detections in image, in pixel coordinates of image.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§