Trait BasicFaceRecognizerTraitConst

Source
pub trait BasicFaceRecognizerTraitConst: FaceRecognizerTraitConst {
    // Required method
    fn as_raw_BasicFaceRecognizer(&self) -> *const c_void;

    // Provided methods
    fn get_num_components(&self) -> Result<i32> { ... }
    fn get_threshold(&self) -> Result<f64> { ... }
    fn get_projections(&self) -> Result<Vector<Mat>> { ... }
    fn get_labels(&self) -> Result<Mat> { ... }
    fn get_eigen_values(&self) -> Result<Mat> { ... }
    fn get_eigen_vectors(&self) -> Result<Mat> { ... }
    fn get_mean(&self) -> Result<Mat> { ... }
    fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()> { ... }
    fn empty(&self) -> Result<bool> { ... }
}
Expand description

Constant methods for crate::face::BasicFaceRecognizer

Required Methods§

Provided Methods§

Source

fn get_num_components(&self) -> Result<i32>

§See also

setNumComponents

Source

fn get_threshold(&self) -> Result<f64>

§See also

setThreshold

Source

fn get_projections(&self) -> Result<Vector<Mat>>

Source

fn get_labels(&self) -> Result<Mat>

Source

fn get_eigen_values(&self) -> Result<Mat>

Source

fn get_eigen_vectors(&self) -> Result<Mat>

Source

fn get_mean(&self) -> Result<Mat>

Source

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Source

fn empty(&self) -> Result<bool>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§