Type Definition opencv::types::PtrOfCascadeClassifier
source · [−]pub type PtrOfCascadeClassifier = Ptr<dyn CascadeClassifier>;
Implementations
sourceimpl PtrOfCascadeClassifier
impl PtrOfCascadeClassifier
pub fn as_raw_PtrOfCascadeClassifier(&self) -> *const c_void
pub fn as_raw_mut_PtrOfCascadeClassifier(&mut self) -> *mut c_void
Trait Implementations
sourceimpl AlgorithmTraitConst for PtrOfCascadeClassifier
impl AlgorithmTraitConst for PtrOfCascadeClassifier
fn as_raw_Algorithm(&self) -> *const c_void
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
sourcefn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
sourcefn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
sourcefn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
sourcefn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more
sourceimpl CascadeClassifier for PtrOfCascadeClassifier
impl CascadeClassifier for PtrOfCascadeClassifier
fn as_raw_mut_CascadeClassifier(&mut self) -> *mut c_void
sourcefn set_max_object_size(&mut self, max_object_size: Size) -> Result<()>
fn set_max_object_size(&mut self, max_object_size: Size) -> Result<()>
Maximum possible object size. Objects larger than that are ignored. Used for
second signature and supported only for LBP cascades. Read more
sourcefn set_min_object_size(&mut self, min_size: Size) -> Result<()>
fn set_min_object_size(&mut self, min_size: Size) -> Result<()>
Minimum possible object size. Objects smaller than that are ignored.
sourcefn set_scale_factor(&mut self, scale_factor: f64) -> Result<()>
fn set_scale_factor(&mut self, scale_factor: f64) -> Result<()>
Parameter specifying how much the image size is reduced at each image scale.
sourcefn set_min_neighbors(&mut self, min_neighbors: i32) -> Result<()>
fn set_min_neighbors(&mut self, min_neighbors: i32) -> Result<()>
Parameter specifying how many neighbors each candidate rectangle should have
to retain it. Read more
fn set_find_largest_object(&mut self, find_largest_object: bool) -> Result<()>
fn get_find_largest_object(&mut self) -> Result<bool>
fn set_max_num_objects(&mut self, max_num_objects: i32) -> Result<()>
sourcefn detect_multi_scale(
&mut self,
image: &dyn ToInputArray,
objects: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn detect_multi_scale(
&mut self,
image: &dyn ToInputArray,
objects: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
Detects objects of different sizes in the input image. Read more