18#include <frvt_structs.h>
25enum class GalleryType {
62 std::string templateId,
64 isAssigned{isAssigned},
65 templateId{templateId},
100 virtual FRVT::ReturnStatus
102 const std::string &configDir,
103 FRVT::TemplateRole role) = 0;
145 virtual FRVT::ReturnStatus
147 const std::vector<FRVT::Image> &faces,
148 FRVT::TemplateRole role,
149 std::vector<uint8_t> &templ,
150 std::vector<FRVT::EyePair> &eyeCoordinates) = 0;
187 virtual FRVT::ReturnStatus
189 const FRVT::Image &image,
190 FRVT::TemplateRole role,
191 std::vector<std::vector<uint8_t>> &templ,
192 std::vector<FRVT::EyePair> &eyeCoordinates) = 0;
230 virtual FRVT::ReturnStatus
232 const std::vector<FRVT::Image> &irises,
233 FRVT::TemplateRole role,
234 std::vector<uint8_t> &templ,
235 std::vector<FRVT::IrisAnnulus> &irisLocations) = 0;
274 virtual FRVT::ReturnStatus
276 const std::vector<FRVT::Image> &facesIrises,
277 FRVT::TemplateRole role,
278 std::vector<uint8_t> &templ) = 0;
327 virtual FRVT::ReturnStatus
329 const std::string &configDir,
330 const std::string &enrollmentDir,
331 const std::string &edbName,
332 const std::string &edbManifestName,
333 FRVT_1N::GalleryType galleryType) = 0;
350 virtual FRVT::ReturnStatus
352 const std::string &configDir,
353 const std::string &enrollmentDir) = 0;
383 virtual FRVT::ReturnStatus
385 const std::vector<uint8_t> &idTemplate,
386 const uint32_t candidateListLength,
387 std::vector<FRVT_1N::Candidate> &candidateList) = 0;
400 static std::shared_ptr<Interface>
410#ifdef NIST_EXTERN_API_VERSION
412extern uint16_t API_MAJOR_VERSION;
414extern uint16_t API_MINOR_VERSION;
417uint16_t API_MAJOR_VERSION{3};
419uint16_t API_MINOR_VERSION{0};
The interface to FRVT 1:N implementation.
virtual FRVT::ReturnStatus initializeIdentification(const std::string &configDir, const std::string &enrollmentDir)=0
This function will be called once prior to one or more calls to identifyTemplate().
virtual FRVT::ReturnStatus createFaceAndIrisTemplate(const std::vector< FRVT::Image > &facesIrises, FRVT::TemplateRole role, std::vector< uint8_t > &templ)=0
This function supports template generation from one or more face and/or iris images of exactly one pe...
virtual FRVT::ReturnStatus finalizeEnrollment(const std::string &configDir, const std::string &enrollmentDir, const std::string &edbName, const std::string &edbManifestName, FRVT_1N::GalleryType galleryType)=0
This function will be called after all enrollment templates have been created and freezes the enrollm...
virtual FRVT::ReturnStatus createFaceTemplate(const std::vector< FRVT::Image > &faces, FRVT::TemplateRole role, std::vector< uint8_t > &templ, std::vector< FRVT::EyePair > &eyeCoordinates)=0
This function supports template generation from one or more face images of exactly one person.
virtual FRVT::ReturnStatus initializeTemplateCreation(const std::string &configDir, FRVT::TemplateRole role)=0
Before images are sent to the template creation function, the test harness will call this initializat...
static std::shared_ptr< Interface > getImplementation()
Factory method to return a managed pointer to the Interface object.
virtual FRVT::ReturnStatus createIrisTemplate(const std::vector< FRVT::Image > &irises, FRVT::TemplateRole role, std::vector< uint8_t > &templ, std::vector< FRVT::IrisAnnulus > &irisLocations)=0
This function supports template generation from one or more iris images of exactly one person.
virtual FRVT::ReturnStatus createFaceTemplate(const FRVT::Image &image, FRVT::TemplateRole role, std::vector< std::vector< uint8_t > > &templ, std::vector< FRVT::EyePair > &eyeCoordinates)=0
This function supports face template generation of one or more people detected from a single image.
virtual FRVT::ReturnStatus identifyTemplate(const std::vector< uint8_t > &idTemplate, const uint32_t candidateListLength, std::vector< FRVT_1N::Candidate > &candidateList)=0
This function searches an identification template against the enrollment set, and outputs a vector co...
Data structure for result of an identification search.
bool isAssigned
If the candidate is valid, this should be set to true.
double score
Measure of similarity or dissimilarity between the identification template and the enrolled candidate...
std::string templateId
The template ID from the enrollment database manifest.