pub struct DetectedObject {
pub label: String,
pub confidence: f64,
pub bounding_box: [i32; 4],
}Expand description
A detected object with bounding box.
Fields§
§label: StringObject label.
confidence: f64Detection confidence (0.0 - 1.0).
bounding_box: [i32; 4]Bounding box: [y_min, x_min, y_max, x_max] normalised to 0-1000.
Trait Implementations§
Source§impl Clone for DetectedObject
impl Clone for DetectedObject
Source§fn clone(&self) -> DetectedObject
fn clone(&self) -> DetectedObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectedObject
impl Debug for DetectedObject
Source§impl Default for DetectedObject
impl Default for DetectedObject
Source§fn default() -> DetectedObject
fn default() -> DetectedObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DetectedObject
impl<'de> Deserialize<'de> for DetectedObject
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 DetectedObject
impl RefUnwindSafe for DetectedObject
impl Send for DetectedObject
impl Sync for DetectedObject
impl Unpin for DetectedObject
impl UnsafeUnpin for DetectedObject
impl UnwindSafe for DetectedObject
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