pub struct BBox {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
pub score: f32,
}Expand description
An axis-aligned bounding box with a detection confidence score.
Coordinates follow the half-open convention [x1, x2) × [y1, y2); a box is
degenerate (zero area) when x2 ≤ x1 or y2 ≤ y1.
Fields§
§x1: f32Left edge (inclusive).
y1: f32Top edge (inclusive).
x2: f32Right edge (exclusive).
y2: f32Bottom edge (exclusive).
score: f32Detection confidence score.
Implementations§
Trait Implementations§
impl Copy for BBox
impl StructuralPartialEq for BBox
Auto Trait Implementations§
impl Freeze for BBox
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin for BBox
impl UnsafeUnpin for BBox
impl UnwindSafe for BBox
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