vsdk  9.1.0
Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >abstract

Base class for biometrics recognition. More...

Inheritance diagram for Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >:
Vsdk::Audio::ConsumerModule

Public Member Functions

auto model () const -> std::shared_ptr< Model > const &
 
void setThreshold (int threshold)
 Sets a threshold of confidence that must be reached for the result to be accepted threshold Generally between 0 and 10 (depends on the provider, 10 means the engine will be the strictest) More...
 
void setModel (std::shared_ptr< Model > model)
 
- Public Member Functions inherited from Vsdk::Audio::ConsumerModule
virtual ~ConsumerModule ()=default
 
virtual void process (Buffer const &, bool last)=0
 

Protected Member Functions

virtual void onNewModelSet ()=0
 

Protected Attributes

std::shared_ptr< Model_model
 
int _threshold = 5
 

Detailed Description

template<typename EventCode, typename ErrorCode>
class Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >

Base class for biometrics recognition.

Member Function Documentation

◆ model()

template<typename EventCode , typename ErrorCode >
auto Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::model ( ) const -> std::shared_ptr<Model> const &

◆ setThreshold()

template<typename EventCode , typename ErrorCode >
void Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::setThreshold ( int  threshold)

Sets a threshold of confidence that must be reached for the result to be accepted threshold Generally between 0 and 10 (depends on the provider, 10 means the engine will be the strictest)

◆ setModel()

template<typename EventCode , typename ErrorCode >
void Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::setModel ( std::shared_ptr< Model model)

◆ onNewModelSet()

template<typename EventCode , typename ErrorCode >
virtual void Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::onNewModelSet ( )
protectedpure virtual

Member Data Documentation

◆ _model

template<typename EventCode , typename ErrorCode >
std::shared_ptr<Model> Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::_model
protected

◆ _threshold

template<typename EventCode , typename ErrorCode >
int Vsdk::Biometrics::Recognizer< EventCode, ErrorCode >::_threshold = 5
protected