NeuroDactyl
NeuroDactyl::PersonDB Class Referenceabstract

Person DB Used for storing persons with its IDs. More...

#include <person.h>

Public Member Functions

virtual void add (const NeuroDactyl::Person *person, const unsigned int id)=0
 
virtual void clear ()=0
 Clears the DB.
 
virtual size_t size ()=0
 Number of templates in the DB.
 
virtual size_t maxSize ()=0
 Max possible number of templates in the DB (person can have up to 10 templates)
 
virtual unsigned int personNum ()=0
 Number of persons in the DB.
 
virtual void getLoadedIDs (std::vector< unsigned int > &ids)=0
 Returns ID list of loaded persons.
 
virtual bool isLoaded (const unsigned int id)=0
 Checks, if a person with specific ID is loaded to the DB.
 
virtual void save (const std::string &path)=0
 Saves the DB to hard drive.
 
virtual void matchK (const NeuroDactyl::Person *person, unsigned int K, float threshold, std::vector< std::pair< unsigned int, float >> &results)=0
 

Detailed Description

Person DB Used for storing persons with its IDs.

Member Function Documentation

◆ add()

virtual void NeuroDactyl::PersonDB::add ( const NeuroDactyl::Person person,
const unsigned int  id 
)
pure virtual

Loads a person to DB

Parameters
[in]personperson
[in]idperson ID
Exceptions
NeuroDactyl::Exceptionwhen the DB is full or the ID is already used

◆ matchK()

virtual void NeuroDactyl::PersonDB::matchK ( const NeuroDactyl::Person person,
unsigned int  K,
float  threshold,
std::vector< std::pair< unsigned int, float >> &  results 
)
pure virtual

Person to person matching

Parameters
[in]personprobe person
[in]Knumber of returning best matches
[in]thresholdMatching threshold
[out]resultsResulting pairs [ID, score]
Exceptions
NeuroDactyl::Exceptionwhen memory is out

The documentation for this class was generated from the following file: