#[repr(C)]pub struct EfDetectBox {
pub xmin: f32,
pub ymin: f32,
pub xmax: f32,
pub ymax: f32,
pub score: f32,
pub label: u32,
}Expand description
A detection: a normalized box, a score, and a label index.
Coordinates are normalized to [0, 1] against the model input, not the
source image — un-letterboxing is the consumer’s job and needs the letterbox
parameters, which this type deliberately does not carry.
Fields§
§xmin: f32§ymin: f32§xmax: f32§ymax: f32§score: f32Model-specific confidence; higher is more confident.
label: u32Label index into the model’s class list.
Trait Implementations§
Source§impl Clone for EfDetectBox
impl Clone for EfDetectBox
Source§fn clone(&self) -> EfDetectBox
fn clone(&self) -> EfDetectBox
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 moreimpl Copy for EfDetectBox
Source§impl Debug for EfDetectBox
impl Debug for EfDetectBox
Source§impl Default for EfDetectBox
impl Default for EfDetectBox
Source§fn default() -> EfDetectBox
fn default() -> EfDetectBox
Returns the “default value” for a type. Read more
Source§impl PartialEq for EfDetectBox
impl PartialEq for EfDetectBox
impl StructuralPartialEq for EfDetectBox
Auto Trait Implementations§
impl Freeze for EfDetectBox
impl RefUnwindSafe for EfDetectBox
impl Send for EfDetectBox
impl Sync for EfDetectBox
impl Unpin for EfDetectBox
impl UnsafeUnpin for EfDetectBox
impl UnwindSafe for EfDetectBox
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