#[repr(C)]pub struct OdDetection {
pub bbox_x: i32,
pub bbox_y: i32,
pub bbox_w: i32,
pub bbox_h: i32,
pub class_id: i32,
pub confidence: f32,
}Expand description
Single detection result (flat, no pointers, safe for CGO memcpy).
Fields§
§bbox_x: i32Top-left corner X coordinate (pixels).
bbox_y: i32Top-left corner Y coordinate (pixels).
bbox_w: i32Bounding box width (pixels).
bbox_h: i32Bounding box height (pixels).
class_id: i32Predicted class index (zero-based).
confidence: f32Detection confidence in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for OdDetection
impl Clone for OdDetection
Source§fn clone(&self) -> OdDetection
fn clone(&self) -> OdDetection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OdDetection
impl Debug for OdDetection
impl Copy for OdDetection
Auto Trait Implementations§
impl Freeze for OdDetection
impl RefUnwindSafe for OdDetection
impl Send for OdDetection
impl Sync for OdDetection
impl Unpin for OdDetection
impl UnsafeUnpin for OdDetection
impl UnwindSafe for OdDetection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more