pub struct VisionObject {
pub source: DetectionSource,
pub width: u16,
pub height: u16,
pub offset: Point2<u16>,
pub center: Point2<u16>,
pub angle: u16,
}
Expand description
A detected vision object.
This struct contains metadata about objects detected by the vision sensor. Objects are
detected by calling VisionSensor::objects
after adding signatures and color codes
to the sensor.
Fields§
§source: DetectionSource
The ID of the signature or color code used to detect this object.
width: u16
The width of the detected object’s bounding box in pixels.
height: u16
The height of the detected object’s bounding box in pixels.
offset: Point2<u16>
The top-left coordinate of the detected object relative to the top-left of the camera’s field of view.
center: Point2<u16>
The center coordinate of the detected object relative to the top-left of the camera’s field of view.
angle: u16
The approximate degrees of rotation of the detected object’s bounding box.
Trait Implementations§
Source§impl Clone for VisionObject
impl Clone for VisionObject
Source§fn clone(&self) -> VisionObject
fn clone(&self) -> VisionObject
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 VisionObject
impl Debug for VisionObject
Source§impl From<V5_DeviceVisionObject> for VisionObject
impl From<V5_DeviceVisionObject> for VisionObject
Source§fn from(value: V5_DeviceVisionObject) -> Self
fn from(value: V5_DeviceVisionObject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VisionObject
impl PartialEq for VisionObject
impl Copy for VisionObject
impl Eq for VisionObject
impl StructuralPartialEq for VisionObject
Auto Trait Implementations§
impl Freeze for VisionObject
impl RefUnwindSafe for VisionObject
impl Send for VisionObject
impl Sync for VisionObject
impl Unpin for VisionObject
impl UnwindSafe for VisionObject
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