pub enum AiVisionObject {
Color {
id: u8,
position: Point2<u16>,
width: u16,
height: u16,
},
Code {
id: u8,
position: Point2<u16>,
width: u16,
height: u16,
angle: f64,
},
AprilTag {
id: u8,
top_left: Point2<i16>,
top_right: Point2<i16>,
bottom_right: Point2<i16>,
bottom_left: Point2<i16>,
},
Model {
id: u8,
classification: String,
position: Point2<u16>,
width: u16,
height: u16,
confidence: u16,
},
}
Expand description
The data associated with an AI Vision object. The data is different depending on the type of object detected.
Variants§
Color
An object detected by color blob detection.
Fields
Code
An object detected by color code detection.
Fields
AprilTag
An object detected by apriltag detection.
Fields
Model
An object detected by an onboard model.
Fields
Trait Implementations§
Source§impl Clone for AiVisionObject
impl Clone for AiVisionObject
Source§fn clone(&self) -> AiVisionObject
fn clone(&self) -> AiVisionObject
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AiVisionObject
impl Debug for AiVisionObject
Source§impl PartialEq for AiVisionObject
impl PartialEq for AiVisionObject
impl StructuralPartialEq for AiVisionObject
Auto Trait Implementations§
impl Freeze for AiVisionObject
impl RefUnwindSafe for AiVisionObject
impl Send for AiVisionObject
impl Sync for AiVisionObject
impl Unpin for AiVisionObject
impl UnwindSafe for AiVisionObject
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