pub trait FaceRecognizerSF: FaceRecognizerSFConst {
    fn as_raw_mut_FaceRecognizerSF(&mut self) -> *mut c_void;

    fn feature(
        &mut self,
        aligned_img: &dyn ToInputArray,
        face_feature: &mut dyn ToOutputArray
    ) -> Result<()> { ... } }

Required Methods

Provided Methods

Extracting face feature from aligned image

Parameters
  • aligned_img: input aligned image
  • face_feature: output face feature

Implementations

Creates an instance of this class with given parameters

Parameters
  • model: the path of the onnx model used for face recognition
  • config: the path to the config file for compability, which is not requested for ONNX models
  • backend_id: the id of backend
  • target_id: the id of target device
C++ default parameters
  • backend_id: 0
  • target_id: 0

Implementors