[−][src]Struct pico_detect::Detector
Implements object detection using a cascade of decision tree classifiers.
Implementations
impl Detector
[src]
pub fn classify_region(
&self,
image: &GrayImage,
roi: &Point3<u32>
) -> Option<f32>
[src]
&self,
image: &GrayImage,
roi: &Point3<u32>
) -> Option<f32>
Estimate detection score for the region of interest.
Arguments
image
- Target image.roi
- region of interest:roi.x
position on image x-axis,roi.y
position on image y-axis,roi.z
region size.
pub fn run_cascade_mut(
&self,
image: &GrayImage,
detections: &mut Vec<Detection>,
params: &CascadeParameters
)
[src]
&self,
image: &GrayImage,
detections: &mut Vec<Detection>,
params: &CascadeParameters
)
Run cascade and push detections to the existing collection.
pub fn run_cascade(
&self,
image: &GrayImage,
params: &CascadeParameters
) -> Vec<Detection>
[src]
&self,
image: &GrayImage,
params: &CascadeParameters
) -> Vec<Detection>
Run cascade with a new empty detection collection.
pub fn find_clusters(
&self,
image: &GrayImage,
params: &CascadeParameters,
threshold: f32
) -> Vec<Detection>
[src]
&self,
image: &GrayImage,
params: &CascadeParameters,
threshold: f32
) -> Vec<Detection>
Run cascade and clusterize resulted detections using
Self::cluster_detections
pub fn cluster_detections(
detections: Vec<Detection>,
threshold: f32
) -> Vec<Detection>
[src]
detections: Vec<Detection>,
threshold: f32
) -> Vec<Detection>
Clusterize detections by intersection over union (IoU) metric.
Arguments
detections
-- mutable collection of detections;threshold
-- if IoU is bigger then a detection is a part of a cluster.
pub fn from_readable(readable: impl Read) -> Result<Self, Error>
[src]
Create a detector object from a readable source.
Auto Trait Implementations
impl RefUnwindSafe for Detector
impl Send for Detector
impl Sync for Detector
impl Unpin for Detector
impl UnwindSafe for Detector
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> Same<T> for T
type Output = T
Should always be Self
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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,