pub struct Detection {
pub class_id: usize,
pub score: f32,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Available on crate feature
ort only.Expand description
One detected object, in the pixel space of the frame OrtDetector
was handed — see its own doc comment for why no further rescaling is
needed to place this on top of that same frame.
Fields§
§class_id: usizeIndex into whatever label set the model was trained on — see
COCO_CLASS_LABELS for stock Ultralytics YOLOv8/v11 weights.
score: f32§x: f32Top-left corner (not center — already converted from the model’s own center/width/height encoding).
y: f32§width: f32§height: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze 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