[−][src]Struct cv::cuda::GpuCascade
Data structure that performs object detection with a cascade classifier.
Methods
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: i32)
[src]
Sets the maximum number of objects.
pub fn set_min_neighbors(&mut self, min: i32)
[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) -> i32
[src]
Returns the allowed maximal number of detected objects.
pub fn get_min_neighbors(&self) -> i32
[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 ObjectDetect for GpuCascade
[src]
impl Send for GpuCascade
[src]
We can safely send a mutable pointer to a different thread
impl Drop for GpuCascade
[src]
impl Debug for GpuCascade
[src]
Auto Trait Implementations
impl !Sync for GpuCascade
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,