Struct opencv::face::CParams

source ·
pub struct CParams { /* private fields */ }

Implementations§

source§

impl CParams

source

pub fn new( cascade_model: &str, sf: f64, min_n: i32, min_sz: Size, max_sz: Size ) -> Result<CParams>

C++ default parameters
  • sf: 1.1
  • min_n: 3
  • min_sz: Size(30,30)
  • max_sz: Size()

Trait Implementations§

source§

impl Boxed for CParams

source§

unsafe fn from_raw(ptr: *mut c_void) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> *mut c_void

Return an the underlying raw pointer while consuming this wrapper. Read more
source§

fn as_raw(&self) -> *const c_void

Return the underlying raw pointer. Read more
source§

fn as_raw_mut(&mut self) -> *mut c_void

Return the underlying mutable raw pointer Read more
source§

impl CParamsTrait for CParams

source§

fn as_raw_mut_CParams(&mut self) -> *mut c_void

source§

fn set_cascade(&mut self, val: &str)

the face detector
source§

fn set_scale_factor(&mut self, val: f64)

Parameter specifying how much the image size is reduced at each image scale.
source§

fn set_min_neighbors(&mut self, val: i32)

Parameter specifying how many neighbors each candidate rectangle should have to retain it.
source§

fn set_min_size(&mut self, val: Size)

Minimum possible object size.
source§

fn set_max_size(&mut self, val: Size)

Maximum possible object size.
source§

fn set_face_cascade(&mut self, val: CascadeClassifier)

source§

impl CParamsTraitConst for CParams

source§

fn as_raw_CParams(&self) -> *const c_void

source§

fn cascade(&self) -> String

the face detector
source§

fn scale_factor(&self) -> f64

Parameter specifying how much the image size is reduced at each image scale.
source§

fn min_neighbors(&self) -> i32

Parameter specifying how many neighbors each candidate rectangle should have to retain it.
source§

fn min_size(&self) -> Size

Minimum possible object size.
source§

fn max_size(&self) -> Size

Maximum possible object size.
source§

fn face_cascade(&self) -> CascadeClassifier

source§

impl Drop for CParams

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for CParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.