Skip to main content

DetectionBox

Trait DetectionBox 

Source
pub trait DetectionBox: Debug + Clone {
    // Required methods
    fn bbox(&self) -> [f32; 4];
    fn score(&self) -> f32;
    fn label(&self) -> usize;
}

Required Methods§

Source

fn bbox(&self) -> [f32; 4]

Source

fn score(&self) -> f32

Source

fn label(&self) -> usize

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.

Implementors§