pub struct Detection {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
pub score: f32,
pub class_id: i64,
}Expand description
A single detection in original image pixel coordinates.
This struct is always compiled (not feature-gated) so that public API
surfaces (api::onnx) can reference it regardless of which ONNX backend
is enabled.
Fields§
§x1: f32§y1: f32§x2: f32§y2: f32§score: f32§class_id: i64Trait Implementations§
impl Copy for Detection
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin 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