1#ifndef TECH5_GALLERY_MATCHER_SERVER_E_H
2#define TECH5_GALLERY_MATCHER_SERVER_E_H
11 #ifdef TECH5_FINGER_SDK_BUILD_dll
12 #define TECH5_FINGER_EXPORT __declspec(dllexport)
14 #define TECH5_FINGER_EXPORT __declspec(dllimport)
16#elif defined (__linux__)
17 #define TECH5_FINGER_EXPORT __attribute__((visibility("default")))
19 #define TECH5_FINGER_EXPORT __attribute__((visibility("default")))
24namespace Tech5Finger {
36 LICENSE_FILE_NAME_INVALID = 1,
44 IMAGE_PROCESSING_FAILED = 5,
54 VERIFICATION_FAILED = 10,
62 UNPACK_INIT_FAILED = 14,
66 NOT_SUPPORT_SSSE3 = 16,
70 NO_FINGERS_GOOD_FOR_ACCEL = 18,
72 ACCEL_MATCHING_FAILED = 19,
76 IDENTIFICATION_FAILED = 21,
80 MAX_GALLERY_SIZE_REACHED = 23,
84 NOT_SUPPORT_SSE4_2 = 25,
90 WRONG_IDENTIFY_MODE = 26,
94 WRONG_IMAGE_TYPE = 28,
100 WRONG_IMAGE_DPI = 31,
102 TOO_LITTLE_MINUTIAE = 32,
110 FINAL_MATCH_INIT_FAILED = 36,
112 FINAL_MATCH_FAILED = 37,
114 UPLOAD_DB_OVERFLOW = 38,
116 UNKNOWN_EXCEPTION = 100;
151 finger = FINGERS::FINGPOS_UK;
187 virtual bool init_license(
const char *licensePath,
void* env =
nullptr ) = 0;
211 uint8_t* skeleton, uint32_t& skeletonSize, uint8_t& quality,
char imageType,
212 bool doSegmentation) = 0;
239 virtual bool check (uint8_t *fpTemplate) = 0;
244 #define MATCHING_SPEED_DEF NORMAL_MATCH_SPEED
368 const uint32_t numberOfThreads ,
369 const uint32_t candidate_list_length ,
370 std::vector<candidates_string> &candidate_list ) = 0;
396 const uint32_t numberOfThreads ,
397 const uint32_t candidate_list_length ,
398 std::vector<string> &candidate_list_id ) = 0;
426 const uint32_t numberOfThreads ,
427 const uint32_t candidate_list_length ,
428 std::vector<candidates_string> &candidate_list ) = 0;
514 uint8_t *latent_template ,
515 uint8_t fingerMask[10] ,
516 const uint32_t number_threads ,
517 const uint32_t candidate_list_length,
518 std::vector<candidates_string> &candidate_list ) = 0;
564 uint8_t *latent_template,
565 uint8_t *finger_template,
611 const uint32_t number_threads,
612 const uint32_t candidate_list_length,
613 std::vector<candidates_string> &candidate_list) = 0;
627 uint8_t *latent_template,
628 const uint32_t number_threads,
629 const uint32_t candidate_list_length,
630 std::vector<candidates_string> &candidate_list) = 0;
679 uint8_t *probe_palm_template,
680 uint8_t *gallery_palm_template,
728 const uint32_t number_threads,
729 const uint32_t candidate_list_length,
730 std::vector<candidates_string> &candidate_list) = 0;
745 uint8_t *probe_palm_template,
746 uint8_t palmPartMask[NUM_PALM_PARTS],
747 const uint32_t number_threads,
748 const uint32_t candidate_list_length,
749 std::vector<candidates_string>& candidate_list) = 0;
798 uint8_t *probe_palm_template,
799 uint8_t *gallery_palm_template,
847 const uint32_t number_threads,
848 const uint32_t candidate_list_length,
849 std::vector<candidates_string>& candidate_list) = 0;
863 uint8_t *probe_palm_template,
864 const uint32_t number_threads,
865 const uint32_t candidate_list_length,
866 std::vector<candidates_string>& candidate_list) = 0;
FINGERSFinger position enumeration.
MATCH_SPEEDMatching speed constants enumeration.
FpTemplateChecker.
Definition: Tech5_GalleryMatcher_ServerE.h:219
LT_Matcher.
Definition: Tech5_GalleryMatcher_ServerE.h:436
Latent_Matcher.
Definition: Tech5_GalleryMatcher_ServerE.h:526
Latent_Palm_Matcher.
Definition: Tech5_GalleryMatcher_ServerE.h:756
Matcher.
Definition: Tech5_GalleryMatcher_ServerE.h:287
Palm_Matcher.
Definition: Tech5_GalleryMatcher_ServerE.h:637
TemplateCreator.
Definition: Tech5_GalleryMatcher_ServerE.h:161
virtual uint32_t identify_LT(MatchingParameters &matchingParameters, uint8_t *latent_template, uint8_t fingerMask[10], const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_latent Function performs latent-tenprints identification in 1 step. NOTE: function can be ca...
virtual bool isRecordExist(std::string &id)=0
isRecordExist
unsigned int maxAngle
The maximum of the finger turn angle for all fingers expcept thumbs, (0...180 degree)
Definition: Tech5_GalleryMatcher_ServerE.h:254
virtual uint32_t identify_record(MatchingParameters &matchingParameters, TpTemplate &probe, PersonalData *probePersonalData, const uint32_t numberOfThreads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_record Function performs tenprint-tenprints identification in 1 step. NOTE: function can be ...
static uint32_t get_max_template_size(char imageType)
get_max_template_size
static uint32_t get_max_template_size()
get_max_template_size
virtual uint32_t identify_LL(MatchingParameters &matchingParameters, uint8_t *latent_template, const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_LL Function performs latent-latents identification in 1 step. NOTE: function can be called o...
virtual bool init_license(const char *licensePath)=0
init_license Function set license
static void cancel(FpTemplateChecker *&checker)
cancel delete object of FpTemplateChecker
static void cancel(Palm_Matcher *&matcher)
cancel delete object of Palm_Matcher
TECH5_FINGER_EXPORT const char * getVersion()
getVersion /
virtual bool check(uint8_t *fpTemplate)=0
check Function check fingerprint template - if it has a right format and in good health
static TemplateCreator * create()
create create object of TemplateCreator
MATCHING_MODE matchingMode
Matching mode.
Definition: Tech5_GalleryMatcher_ServerE.h:258
virtual uint32_t insert_record(std::string &id, TpTemplate &tpTemplate)=0
insert_record Function insert record in memory database that is used in indentification
#define MATCHING_SPEED_DEF
default matching speed
Definition: Tech5_GalleryMatcher_ServerE.h:244
float logFAR
logFAR
Definition: Tech5_GalleryMatcher_ServerE.h:148
virtual bool isRecordExist(std::string &id)=0
isRecordExist
virtual bool init_license(const char *licensePath)=0
init_license Function set license
virtual bool isRecordExist(std::string &id)=0
isRecordExist
virtual uint32_t delete_record(std::string &id)=0
delete_record Function delete record from memory database that is used in indentification
virtual uint64_t get_final_gallery_size() const =0
get_final_gallery_size
virtual bool isRecordExist(std::string &id)=0
isRecordExist
virtual uint32_t identify_LPLP(MatchingParameters &matchingParameters, uint8_t *probe_palm_template, const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_LPLP Function performs palm latent - palm latents identification in 1 step....
virtual uint64_t get_final_gallery_size() const =0
get_final_gallery_size
std::string uid
unique record ID
Definition: Tech5_GalleryMatcher_ServerE.h:138
virtual uint32_t identify_PP(MatchingParameters &matchingParameters, TpTemplate probe_palm_template, const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_PP Function performs palmprint-palmprints identification in 1 step. NOTE: function can be ca...
static uint32_t get_max_template_size()
get_max_template_size
unsigned int maxAngleThumbs
the maximum of the finger turn angle for thumbs, (0...180 degree)
Definition: Tech5_GalleryMatcher_ServerE.h:256
virtual uint32_t verify_record(MatchingParameters &matchingParameters, TpTemplate &tpTemplate1, TpTemplate &tpTemplate2, double &score, double &logFAR)=0
verify_record Function verify two records, each of them can have from 1 till 10 fingerprints
virtual uint32_t insert_record(std::string &id, uint8_t *palmTemplate)=0
insert_record Function insert record in memory database that is used in indentification
virtual uint32_t insert_record(std::string &id, TpTemplate &palmTemplate)=0
insert_record Function insert record in memory database that is used in indentification
virtual uint32_t verify_palm(MatchingParameters &matchingParameters, uint8_t *probe_palm_template, uint8_t *gallery_palm_template, double &score, double &logFAR)=0
verify_palm Function verify two palm templates
virtual uint32_t insert_record(const std::string &id, TpTemplate &tpTemplate, PersonalData *personalData)=0
insert_record Function insert record in memory database that is used in indentification
virtual uint32_t verify_latent(MatchingParameters &matchingParameters, uint8_t *latent_template, uint8_t *finger_template, double &score, double &logFAR)=0
verify_latent Function verify latent template with fingerprint template
virtual bool init_license(const char *licensePath, void *env=nullptr)=0
init_license Function set license
virtual uint32_t identify_TL(MatchingParameters &matchingParameters, TpTemplate &probeTpTemplate, const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_TL Function performs tenprint-latents identification in 1 step. NOTE: function can be called...
IDENTIFY_MODE
IDENTIFY_MODE.
Definition: Tech5_GalleryMatcher_ServerE.h:272
static FpTemplateChecker * create()
create create object of FpTemplateChecker
virtual uint32_t delete_record(std::string &id)=0
delete_record Function delete record from memory database that is used in indentification
static Latent_Palm_Matcher * create(IDENTIFY_MODE identify_mode, bool check_doubles)
create create object of Latent_Palm_Matcher
virtual uint32_t delete_record(std::string &id)=0
delete_record Function delete record from memory database that is used in indentification
static uint32_t get_max_template_size()
get_max_template_size
virtual bool isRecordExist(const std::string &id)=0
isRecordExist
virtual uint32_t delete_record(const std::string &id)=0
delete_record Function delete record from memory database that is used in indentification
virtual uint32_t verify_latent(MatchingParameters &matchingParameters, uint8_t *latent_template, uint8_t *finger_template, double &score, double &logFAR)=0
verify_latent Function verify latent template with latent or fingerprint template
static void cancel(Latent_Matcher *&matcher)
cancel delete object of LT_Matcher
static Matcher * create(IDENTIFY_MODE identify_mode, bool check_doubles)
create create object of Matcher
float score
matching score (0...1)
Definition: Tech5_GalleryMatcher_ServerE.h:146
static void cancel(TemplateCreator *&templateCreator)
cancel delete object of TemplateCreator
static void cancel(LT_Matcher *&matcher)
cancel delete object of LT_Matcher
virtual bool init_license(const char *licensePath)=0
init_license Function set license
virtual uint32_t identify_LPP(MatchingParameters &matchingParameters, uint8_t *probe_palm_template, uint8_t palmPartMask[NUM_PALM_PARTS], const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_LPP Function performs latent palm-palmprints identification in 1 step. NOTE: function can be...
virtual uint64_t get_final_gallery_size() const =0
get_final_gallery_size
static Palm_Matcher * create(IDENTIFY_MODE identify_mode, bool check_doubles)
create create object of Palm_Matcher
virtual uint32_t identify_record_2nd(MatchingParameters &matchingParameters, TpTemplate &probe, const uint32_t numberOfThreads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_record_2nd Function performs 2nd (final) stage of tenprint-tenprints identification....
static void cancel(Matcher *&matcher)
cancel delete object of Matcher
virtual uint32_t verify_palm(MatchingParameters &matchingParameters, uint8_t *probe_palm_template, uint8_t *gallery_palm_template, double &score, double &logFAR)=0
verify_palm Function verify two palm templates
virtual uint32_t identify_PLP(MatchingParameters &matchingParameters, TpTemplate probe_palm_template, const uint32_t number_threads, const uint32_t candidate_list_length, std::vector< candidates_string > &candidate_list)=0
identify_PL Function performs palmprint-palm latents identification in 1 step. NOTE: function can be ...
virtual uint32_t delete_record(std::string &id)=0
delete_record Function delete record from memory database that is used in indentification
MATCH_SPEED searchSpeed
Matching speed. The current valid value from 0 to 6.
Definition: Tech5_GalleryMatcher_ServerE.h:252
static uint32_t get_max_template_size()
get_max_template_size
static void cancel(Latent_Palm_Matcher *&matcher)
cancel delete object of Latent_Palm_Matcher
virtual uint32_t insert_record_2nd(const std::string &id, TpTemplate &tpTemplate)=0
insert_record_2nd Function insert record in memory database that is used by 'identify_record_2nd' fun...
static Latent_Matcher * create(IDENTIFY_MODE identify_mode, bool check_doubles)
create create object of Latent_Matcher
virtual void clean_gallery_2nd()=0
clean_gallery_2nd Function clean the memory database that is used by 'identify_record_2nd' function f...
virtual uint32_t identify_record_1st(MatchingParameters &matchingParameters, TpTemplate &probe, PersonalData *probePersonalData, const uint32_t numberOfThreads, const uint32_t candidate_list_length, std::vector< string > &candidate_list_id)=0
identify_record_1st Function performs 1st stage of tenprint-tenprints identification....
virtual uint64_t get_final_gallery_size() const =0
get_final_gallery_size
virtual uint32_t createTemplate(ImageData &image, uint8_t *fpTemplate, uint32_t &templateSize, uint8_t *skeleton, uint32_t &skeletonSize, uint8_t &quality, char imageType, bool doSegmentation)=0
createTemplate Function build template from image from one of supported formats
virtual uint64_t get_final_gallery_size() const =0
get_final_gallery_size
virtual bool init_license(const char *licensePath)=0
init_license Function set license
virtual bool init_license(const char *licensePath)=0
init_license Function set license
static LT_Matcher * create(IDENTIFY_MODE identify_mode, bool check_doubles)
create create object of LT_Matcher
static uint32_t get_max_template_size()
get_max_template_size
virtual uint32_t insert_latent(std::string &id, uint8_t *latent)=0
insert_latent Function insert record in memory database that is used in indentification
@ SLOW_IDENTIFY
Definition: Tech5_GalleryMatcher_ServerE.h:279
@ FAST_IDENTIFY
Definition: Tech5_GalleryMatcher_ServerE.h:275
ImageDatastructure keeps information about image data.
Definition: common.h:378
PersonalData.
Definition: common.h:410
MatchingParameters.
Definition: Tech5_GalleryMatcher_ServerE.h:250
candidates_string
Definition: Tech5_GalleryMatcher_ServerE.h:136
TpTemplatekeeps information about TP(tenprint) template.
Definition: coreSdk.h:619