Struct cv::cuda::GpuCascade[][src]

pub struct GpuCascade { /* fields omitted */ }

Data structure that performs object detection with a cascade classifier.

Implementations

impl GpuCascade[src]

pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Loads the classifier from a file.

Name of the file from which the classifier is loaded. Only the old haar classifier (trained by the haar training application) and NVIDIA’s nvbin are supported for HAAR and only new type of OpenCV XML cascade supported for LBP. The working haar models can be found at opencv_folder/data/haarcascades_cuda/.

pub fn detect_multiscale(&self, mat: &GpuMat) -> Vec<Rect>[src]

Detects objects of different sizes in the input image.

pub fn set_find_largest_object(&mut self, value: bool)[src]

Sets whether or not to find the only largest object.

pub fn set_max_num_objects(&mut self, max: c_int)[src]

Sets the maximum number of objects.

pub fn set_min_neighbors(&mut self, min: c_int)[src]

Sets minimal neighbors required for a detection to be valid.

pub fn set_max_object_size(&mut self, max: Size2i)[src]

Sets the maximun object size.

pub fn set_min_object_size(&mut self, min: Size2i)[src]

Sets the minimal object size.

pub fn set_scale_factor(&mut self, factor: f64)[src]

Sets the scale factor used in multiscale detection.

pub fn get_classifier_size(&self) -> Size2i[src]

Returns the classifier size.

pub fn get_find_largest_object_flag(&self) -> bool[src]

Returns if the CascadeClassifier will only return the largest object.

pub fn get_max_num_objects(&self) -> c_int[src]

Returns the allowed maximal number of detected objects.

pub fn get_min_neighbors(&self) -> c_int[src]

Returns the number of minimal neighbors required for a detection to be valid.

pub fn get_max_object_size(&self) -> Size2i[src]

Returns the maximum object size.

pub fn get_min_object_size(&self) -> Size2i[src]

Returns the minimal object size.

pub fn get_scale_factor(&self) -> f64[src]

Returns the scale factor.

Trait Implementations

impl Debug for GpuCascade[src]

impl Drop for GpuCascade[src]

impl ObjectDetect for GpuCascade[src]

impl Send for GpuCascade[src]

We can safely send a mutable pointer to a different thread

Auto Trait Implementations

impl RefUnwindSafe for GpuCascade

impl !Sync for GpuCascade

impl Unpin for GpuCascade

impl UnwindSafe for GpuCascade

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.