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§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".