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§
fn as_raw_BasicFaceRecognizer(&self) -> *const c_void
Provided Methods§
Sourcefn get_num_components(&self) -> Result<i32>
fn get_num_components(&self) -> Result<i32>
§See also
setNumComponents
Sourcefn get_threshold(&self) -> Result<f64>
fn get_threshold(&self) -> Result<f64>
§See also
setThreshold
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>
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.