#[repr(C)]pub struct Detection {
pub center_x: f32,
pub center_y: f32,
pub width: f32,
pub height: f32,
pub confidence: f32,
pub class_id: u32,
pub color_rgba: u32,
pub track_id: u32,
}Expand description
One GPU-consumable detection record, exactly 32 bytes.
color_rgba is an optional per-instance display color in 0xRRGGBBAA;
zero selects the overlay style fallback and preserves compatibility with
older producers. track_id is a stable identity for trackers; rendering
ignores it while postprocess and interaction code retain the same record
layout across frames.
Fields§
§center_x: f32§center_y: f32§width: f32§height: f32§confidence: f32§class_id: u32§color_rgba: u32§track_id: u32Trait Implementations§
impl Copy for Detection
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Forget for Detection
impl Freeze for Detection
impl Move 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