pub struct VisionObject {
pub source: DetectionSource,
pub width: u16,
pub height: u16,
pub offset: Point2<u16>,
pub center: Point2<u16>,
pub angle: Angle,
}Available on crate feature
devices only.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: DetectionSourceThe ID of the signature or color code used to detect this object.
width: u16The width of the detected object’s bounding box in pixels.
height: u16The 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: AngleThe 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§fn clone_from(&mut self, source: &Self)
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) -> VisionObject
fn from(value: V5_DeviceVisionObject) -> VisionObject
Converts to this type from the input type.
Source§impl PartialEq for VisionObject
impl PartialEq for VisionObject
impl Copy 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)