Struct BoxPrediction
pub struct BoxPrediction { /* private fields */ }
Expand description
A struct representing a single resulting bounding box.
Confidence values lie between 0 and 1. Coordinates are relative to the full image.
Note that the algorithm comes with a built-in threshold (e.g. 0.6 - this differs per model and per class): boxes with confidences lower than that value won’t be produced at all by Plumerai software.
Implementations§
§impl BoxPrediction
impl BoxPrediction
pub fn coords(&self) -> &RelativeCoords
pub fn confidence(&self) -> f32
pub fn class_id(&self) -> DetectionClass
pub fn track_id(&self) -> &TrackID
Trait Implementations§
§impl Clone for BoxPrediction
impl Clone for BoxPrediction
§fn clone(&self) -> BoxPrediction
fn clone(&self) -> BoxPrediction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for BoxPrediction
impl Debug for BoxPrediction
§impl<'de> Deserialize<'de> for BoxPrediction
impl<'de> Deserialize<'de> for BoxPrediction
§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
§impl Display for BoxPrediction
impl Display for BoxPrediction
§impl PartialEq for BoxPrediction
impl PartialEq for BoxPrediction
§impl Serialize for BoxPrediction
impl Serialize for BoxPrediction
impl StructuralPartialEq for BoxPrediction
Auto Trait Implementations§
impl Freeze for BoxPrediction
impl RefUnwindSafe for BoxPrediction
impl Send for BoxPrediction
impl Sync for BoxPrediction
impl Unpin for BoxPrediction
impl UnwindSafe for BoxPrediction
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