vsdk  7.1.1
Vsdk::Biometrics::Engineabstract

Responsible for creation of Authenticator and Identificator instances. More...

Inheritance diagram for Vsdk::Biometrics::Engine:

Public Member Functions

virtual auto model (std::string const &name) -> std::shared_ptr< Model >=0
 Fetch model name if it's been configured. More...
 
virtual auto makeModel (std::string name, ModelType type) -> std::shared_ptr< Model >=0
 Create a new, empty model of type type named name. More...
 
virtual auto makeAuthenticator (std::string name) -> std::shared_ptr< Authenticator >=0
 Create a default constructed authenticator. More...
 
auto makeAuthenticator (std::string name, std::shared_ptr< Model > model, int threshold=5) -> std::shared_ptr< Authenticator >
 Create a default constructed authenticator, initialized with model. More...
 
virtual auto makeIdentificator (std::string name) -> std::shared_ptr< Identificator >=0
 Create a default constructed identificator. More...
 
auto makeIdentificator (std::string name, std::shared_ptr< Model > model, int threshold=5) -> std::shared_ptr< Identificator >
 Create a default constructed identificator, initialized with model. More...
 

Static Public Member Functions

template<class T , typename... Args>
static auto make (Args &&... args) -> std::shared_ptr< Engine >
 Gets or constructs a shared Biometrics::Engine instance of type T with args. More...
 

Detailed Description

Responsible for creation of Authenticator and Identificator instances.

Member Function Documentation

◆ make()

template<class T , typename... Args>
static auto Vsdk::Biometrics::Engine::make ( Args &&...  args) -> std::shared_ptr<Engine>
static

Gets or constructs a shared Biometrics::Engine instance of type T with args.

Note
If an engine of this type exists, a shared instance will be returned instead.

◆ model()

virtual auto Vsdk::Biometrics::Engine::model ( std::string const &  name) -> std::shared_ptr< Model >
pure virtual

Fetch model name if it's been configured.

◆ makeModel()

virtual auto Vsdk::Biometrics::Engine::makeModel ( std::string  name,
ModelType  type 
) -> std::shared_ptr< Model >
pure virtual

Create a new, empty model of type type named name.

◆ makeAuthenticator() [1/2]

virtual auto Vsdk::Biometrics::Engine::makeAuthenticator ( std::string  name) -> std::shared_ptr< Authenticator >
pure virtual

Create a default constructed authenticator.

◆ makeAuthenticator() [2/2]

auto Engine::makeAuthenticator ( std::string  name,
std::shared_ptr< Model model,
int  threshold = 5 
) -> std::shared_ptr<Authenticator>

Create a default constructed authenticator, initialized with model.

◆ makeIdentificator() [1/2]

virtual auto Vsdk::Biometrics::Engine::makeIdentificator ( std::string  name) -> std::shared_ptr< Identificator >
pure virtual

Create a default constructed identificator.

◆ makeIdentificator() [2/2]

auto Engine::makeIdentificator ( std::string  name,
std::shared_ptr< Model model,
int  threshold = 5 
) -> std::shared_ptr<Identificator>

Create a default constructed identificator, initialized with model.