FbsTemplateMatcher.h File Reference
Describes the
FbsTemplateMatcherHandle, the module used to store a gallery of
FbsIdRecordHandle and which can perform biometric searching on its stored gallery.
More...
#include "FbsIdRecord.h"
#include "FbsResultList.h"
#include "FoundationBridgeSDKDll.h"
#include "FbsProbeDescriptor.h"
#include "FbsTemplateMatcherConfiguration.h"
|
Typedefs |
| typedef TemplateMatcherStruct * | FbsTemplateMatcherHandle |
Functions |
| FbsTemplateMatcherHandle | fbsCreateTemplateMatcher (int nThreads) |
| bool | fbsDestroyTemplateMatcher (FbsTemplateMatcherHandle &handle) |
| bool | fbsTemplateMatcherInit (FbsTemplateMatcherHandle handle, const char *id, const char *templateFolder, bool recover) |
| bool | fbsTemplateMatcherIdentify (FbsTemplateMatcherHandle handle, FbsIdRecordHandle probeRecord, FbsProbeDescriptorHandle probeDescriptor, FbsResultListHandle outResult, FBSuint32 threadIndexA) |
| bool | fbsTemplateMatcherGetConfiguration (FbsTemplateMatcherHandle handleA, FbsTemplateMatcherConfigurationHandle &configHandle) |
| bool | fbsTemplateMatcherAdd (FbsTemplateMatcherHandle handle, FbsIdRecordHandle galleryRecord, const FBSuint32 *queryLanguageAttributes) |
| bool | fbsTemplateMatcherGetNumberOfIdRecords (FbsTemplateMatcherHandle handle, int &size) |
| bool | fbsTemplateMatcherGetNumberOfPersons (FbsTemplateMatcherHandle handle, int &size) |
| bool | fbsTemplateMatcherGetIdRecord (FbsTemplateMatcherHandle handle, FbsIdRecordHandle &galleryRecord, FBSuint64 transactionID) |
| bool | fbsTemplateMatcherDeleteIdRecord (FbsTemplateMatcherHandle handle, FBSuint64 transactionID) |
| bool | fbsTemplateMatcherDeleteAllIdRecords (FbsTemplateMatcherHandle handle) |
| bool | fbsTemplateMatcherGetQueryLanguageAttributes (FbsTemplateMatcherHandle handle, FBSuint64 transactionID, const FBSuint32 *&data, int &datasize) |
| bool | fbsTemplateMatcherGetTransactionID (FbsTemplateMatcherHandle handle, const FBSuint32 *data, int datasize, FBSuint64 &transactionID) |
| bool | fbsTemplateMatcherGetMaxTransactionID (FbsTemplateMatcherHandle handle, FBSuint64 &transactionID) |
| bool | fbsTemplateMatcherSetRandomizeFeatures (FbsTemplateMatcherHandle handle) |
| bool | fbsTemplateMatcherSetPerflogFilename (FbsTemplateMatcherHandle handle, const char *filenameA) |
| bool | fbsTemplateMatcherSetFreqImageFilename (FbsTemplateMatcherHandle tmmpStructPtrA, const char *filenameA) |
| bool | fbsTemplateMatcherDumpToFile (FbsTemplateMatcherHandle tmmpStructPtrA, const char *filenameA) |
| bool | fbsTemplateMatcherDumpBinaryToFile (FbsTemplateMatcherHandle tmmpStructPtrA, const char *filenameA) |
| bool | fbsTemplateMatcherDumpShortBinaryToFile (FbsTemplateMatcherHandle tmmpStructPtrA, const char *filenameA) |
Detailed Description
Describes the
FbsTemplateMatcherHandle, the module used to store a gallery of
FbsIdRecordHandle and which can perform biometric searching on its stored gallery.
The FbsTemplateMatcherHandle has few search settings as most search parameters are set within the FbsProbeDescriptorHandle and the FbsProbeSampleDescriptorHandle. The few exceptions include the number of threads this template matcher is using and the template matcher id that maps to the correct section within the xml configuration files that is to be used.
The FbsTemplateMatcherConfigurationHandle that manages parameters such as pass size and is housed within the FbsProbeDescriptorHandle should be initially created from the FbsTemplateMatcherHandle that the search will be conducted with.
Beside handling searching the
FbsTemplateMatcherHandle also has in its interface some gallery management functions like add, delete, and retrieval.
The
FbsTemplateMatcherHandle can be used to retrieve from previously stored data from disk. However, the number of threads used to initialize the matcher must remain the same in order for reloading from disk to be successful.
- Copyright 2008:
- L1 Identiy Solutions
- Project:
- Foundation Bridge
- Language and Compiler:
- C, tested with Microsoft Visual C++ 8.0 SP1
Typedef Documentation
Handle to template matcher module.
Function Documentation
Delete all records from both disk and memory from the given FbsTemplateMatcherHandle. This function should be used with caution as all data will be deleted and unrecoverable.
- Parameters:
-
Use retrieve the maximum transactionID
- Parameters:
-
Use transactionID to retrieve the queryLanguage data
- Parameters:
-
| handle | source FbsTemplateMatcherHandle |
| transactionID | the transactionId of the requested QueryLanguage data |
| data | output parameter |
| datasize | size of the data |
Use queryLanguage data to retrieve the transactionID
- Parameters:
-
| handle | source FbsTemplateMatcherHandle |
| data | output parameter |
| datasize | size of the data |
| output | transactionID the transactionId of the requested QueryLanguage data |
| bool fbsTemplateMatcherInit |
( |
FbsTemplateMatcherHandle |
handle, |
|
|
const char * |
id, |
|
|
const char * |
templateFolder, |
|
|
bool |
recover | |
|
) |
| | |
Initialize an FbsTemplateCreatorHandle. This must be the first function called after fbsCreateTemplateMatcher.
- Parameters:
-
| handle | FbsTemplateCreatorHandle to be initialized. |
| id | The configuration section that this FbsTemplateMatcherHandle will draw it configuration settings from. |
| templateFolder | the location of the gallery watchlist FID file. Overrides template folder setting in configuration files. Pass in 0 to use default. |
| recover | if true attempts to load in previously stored gallery members. If false persistent gallery is cleared and client starts from scratch. |