pub struct Detection2D {
pub det_id: String,
pub node_id: String,
pub camera_id: String,
pub class_id: String,
pub score: f32,
pub bbox: [f64; 4],
pub has_mask: bool,
pub mask_blob_id: String,
pub stamp: Time,
pub source_id: String,
}Fields§
§det_id: String§node_id: String§camera_id: String§class_id: String§score: f32§bbox: [f64; 4]§has_mask: bool§mask_blob_id: String§stamp: Time§source_id: StringImplementations§
Source§impl Detection2D
impl Detection2D
pub fn encode(&self, w: &mut Writer) -> Result<(), WireError>
pub fn decode(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_holder_be(&self) -> Result<Vec<u8>, WireError>
pub fn key_from_holder_be(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_hash(&self) -> Result<[u8; 16], WireError>
Trait Implementations§
Source§impl Clone for Detection2D
impl Clone for Detection2D
Source§impl Debug for Detection2D
impl Debug for Detection2D
Source§impl Default for Detection2D
impl Default for Detection2D
Source§impl PartialEq for Detection2D
impl PartialEq for Detection2D
impl StructuralPartialEq for Detection2D
Auto Trait Implementations§
impl Freeze for Detection2D
impl RefUnwindSafe for Detection2D
impl Send for Detection2D
impl Sync for Detection2D
impl Unpin for Detection2D
impl UnsafeUnpin for Detection2D
impl UnwindSafe for Detection2D
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