pub struct Detection {Show 13 fields
pub detection_id: Option<String>,
pub object: Option<ObjectRef>,
pub class_label: Option<String>,
pub confidence: Option<DetectionConfidence>,
pub confidence_score: Option<f64>,
pub bounding_box_3d: Option<BoundingBox>,
pub bounding_box_2d: Option<BoundingBox2D>,
pub position: Option<Position3D>,
pub distance_m: Option<f64>,
pub source_sensor: Option<String>,
pub is_human: Option<bool>,
pub velocity_mps: Option<f64>,
pub heading_deg: Option<f64>,
}Expand description
Object detection.
Fields§
§detection_id: Option<String>Detection ID
object: Option<ObjectRef>Object reference (for tracking)
class_label: Option<String>Object class/label
confidence: Option<DetectionConfidence>Confidence level
confidence_score: Option<f64>Confidence score (0-1)
bounding_box_3d: Option<BoundingBox>3D bounding box
bounding_box_2d: Option<BoundingBox2D>2D bounding box (in image)
position: Option<Position3D>Position relative to robot
distance_m: Option<f64>Distance to detection in meters
source_sensor: Option<String>Detection source sensor
is_human: Option<bool>Whether this is a human detection
velocity_mps: Option<f64>Velocity if tracked (m/s)
heading_deg: Option<f64>Heading if tracked (degrees)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Detection
impl<'de> Deserialize<'de> for Detection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin 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