[−][src]Struct darknet::Detections
Methods
impl Detections
[src]
pub fn new(
detections: Vec<detection>,
names: &Arc<Vec<String>>,
thresh: f32
) -> Detections
[src]
detections: Vec<detection>,
names: &Arc<Vec<String>>,
thresh: f32
) -> Detections
pub fn get_boxes(&self) -> Vec<BBox>
[src]
Returns vector of bounding boxes
pub fn get_labels(&self) -> Vec<String>
[src]
Returns detected object labels
pub fn get_raw_vec(&self) -> Vec<detection>
[src]
Returns vector of raw detection type
pub fn draw_on_image(&self, image: &mut Image)
[src]
Draws detection boxes with labels on image
pub fn crop_from(&self, img: &Image) -> Vec<(String, Image)>
[src]
Crops all detected objects from image
returns Vec<label, image>
pub fn count(&self) -> usize
[src]
Returns detections count
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Detections
impl !Send for Detections
impl !Sync for Detections
impl Unpin for Detections
impl UnwindSafe for Detections
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,