Realm

oa::vision::Detection

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.

StRust public API

Declaration

#[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, }
Public Rust declaration.

Public Methods

fn clone(&self) -> Detection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &Detection) -> bool

Associated Functions

fn default() -> Detection

Public Data Members

center_xf32field
center_yf32field
widthf32field
heightf32field
confidencef32field
class_idu32field
color_rgbau32field
track_idu32field

Public Method Documentation

fn clone( &self ) -> Detection
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &Detection ) -> bool
No public source comment is attached to this declaration.
fn default() -> Detection
No public source comment is attached to this declaration.