Struct opencv::objdetect::FaceRecognizerSF

source ·
pub struct FaceRecognizerSF { /* private fields */ }
Expand description

Implementations§

source§

impl FaceRecognizerSF

source

pub fn create( model: &str, config: &str, backend_id: i32, target_id: i32 ) -> Result<Ptr<FaceRecognizerSF>>

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
source

pub fn create_def(model: &str, config: &str) -> Result<Ptr<FaceRecognizerSF>>

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
§Note

This alternative version of FaceRecognizerSF::create function uses the following default values for its arguments:

  • backend_id: 0
  • target_id: 0

Trait Implementations§

source§

impl Boxed for FaceRecognizerSF

source§

unsafe fn from_raw( ptr: <FaceRecognizerSF as OpenCVType<'_>>::ExternReceive ) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw( self ) -> <FaceRecognizerSF as OpenCVTypeExternContainer>::ExternSendMut

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

fn as_raw(&self) -> <FaceRecognizerSF as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
source§

fn as_raw_mut( &mut self ) -> <FaceRecognizerSF as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
source§

impl Debug for FaceRecognizerSF

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for FaceRecognizerSF

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl FaceRecognizerSFTrait for FaceRecognizerSF

source§

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

source§

fn feature( &mut self, aligned_img: &impl ToInputArray, face_feature: &mut impl ToOutputArray ) -> Result<()>

Extracting face feature from aligned image Read more
source§

impl FaceRecognizerSFTraitConst for FaceRecognizerSF

source§

fn as_raw_FaceRecognizerSF(&self) -> *const c_void

source§

fn align_crop( &self, src_img: &impl ToInputArray, face_box: &impl ToInputArray, aligned_img: &mut impl ToOutputArray ) -> Result<()>

Aligning image to put face on the standard position Read more
source§

fn match_( &self, face_feature1: &impl ToInputArray, face_feature2: &impl ToInputArray, dis_type: i32 ) -> Result<f64>

Calculating the distance between two face features Read more
source§

fn match__def( &self, face_feature1: &impl ToInputArray, face_feature2: &impl ToInputArray ) -> Result<f64>

Calculating the distance between two face features Read more
source§

impl Send for FaceRecognizerSF

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.