pub trait Detector {
// Required method
fn detect(&mut self, frame: &Frame) -> DetectionResult;
// Provided method
fn set_thresholds(&mut self, _obj: f32, _iou: f32) { ... }
}Expand description
Runs inference on a frame.
Required Methods§
fn detect(&mut self, frame: &Frame) -> DetectionResult
Provided Methods§
Sourcefn set_thresholds(&mut self, _obj: f32, _iou: f32)
fn set_thresholds(&mut self, _obj: f32, _iou: f32)
Optional: adjust thresholds at runtime.