pub struct Detection {
pub bbox: [f32; 4],
pub class: String,
pub confidence: f32,
}Expand description
A single detected object.
Fields§
§bbox: [f32; 4]Bounding box as [cx, cy, w, h] normalised to [0, 1].
class: StringClass label resolved from the detector’s class_names list.
confidence: f32Confidence score in [0, 1].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more