FbsIdRecord.h File Reference
Describes the
FbsIdRecordHandle, a packet of biometric templates generated by the TemplateCreator and which can be added directly to any TemplateMatcher.
More...
#include "FbsTypes.h"
#include "FbsCommon.h"
#include "FoundationBridgeSDKDll.h"
|
Typedefs |
| typedef IdRecordStruct * | FbsIdRecordHandle |
| | Handle to packet of algorithmic templates. FbsIdRecordHandle is generated by FbsTemplateCreatorHandle and are added/retrieved to/from FbsTemplateMatcherHandle.
|
Functions |
| FbsIdRecordHandle | fbsCreateIdRecord () |
| bool | fbsDestroyIdRecord (FbsIdRecordHandle &handle) |
| bool | fbsIdRecordSerializeIn (FbsIdRecordHandle handle, const char *data, int datasize, FBSuint64 checksum) |
| bool | fbsIdRecordReadFromFile (FbsIdRecordHandle handle, const char *filename) |
| bool | fbsIdRecordWriteToFile (FbsIdRecordHandle handle, const char *filename) |
| bool | fbsIdRecordSerializeOut (FbsIdRecordHandle handle, FbsBlobHandle &blob) |
| bool | fbsIdRecordExistBioRecord (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, bool &outExist) |
| bool | fbsIdRecordSetPersonId (FbsIdRecordHandle handle, FBSuint64 id) |
| bool | fbsIdRecordSetTransactionId (FbsIdRecordHandle handle, FBSuint64 id) |
| bool | fbsIdRecordGetNumberOfSamples (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, int &outNumberOfSamples) |
| bool | fbsIdRecordGetSampleIdByIndex (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, int index, FBSuint64 &sampleId) |
| bool | fbsIdRecordDeleteSample (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId) |
| bool | fbsIdRecordAddSerializedSample (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId, const char *data, int datasize, FBSuint64 checksum) |
| bool | fbsIdRecordGetSerializedSample (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId, FbsBlobHandle &blob) |
| bool | fbsIdRecordExistAlgorithmOfSampleId (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId, FbsAlgorithm algorithm, bool &outExist) |
| bool | fbsIdRecordAddSerializedTemplateBlock (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId, FbsAlgorithm algorithm, const char *data, int datasize, FBSuint64 checksum) |
| bool | fbsIdRecordGetSerializedTemplateBlock (FbsIdRecordHandle handle, FbsModality modality, FbsInstance instance, FBSuint64 sampleId, FbsAlgorithm algorithm, FbsBlobHandle &blob) |
| bool | fbsIdRecordSetPersonIdx32 (FbsIdRecordHandle handle, FBSuint32 high, FBSuint32 low) |
| bool | fbsIdRecordSetTransactionIdx32 (FbsIdRecordHandle handle, FBSuint32 high, FBSuint32 low) |
Detailed Description
Describes the
FbsIdRecordHandle, a packet of biometric templates generated by the TemplateCreator and which can be added directly to any TemplateMatcher.
Each FbsIdRecordHanlde is unqiely addressed in a TemplateMatcher by its TransactionId. Each FbsIdRecordHanlde is also associated with a non-unqiue PersonId. Each FbsIdRecordHandle is split internally into separate BioRecords that are unqiely identified by the combination of FbsModality (face ,finger, etc) and FbsInstance (frontalFace, fingerLeftIndex, etc). Each BioRecord can conatain a series of biometric sample data for that modality/instance combination that can be uniquely addressed by a sampleId. Each biometric sample is in turn composed of a set of algorithmic template blocks. The data held by a FbsIdREcordHandle can be accessed down to the granularity of an individual template block through the interface provided.
FbsIdRecordHandle structure
---------------------------------------------------------------------------------------
FbsIdRecord (PersonID + TransactionID)
- BioRecord (modality+instance)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- BioRecord (modality+instance)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Sample (SampleId)
- TemplateBlock (Algorithm)
- TemplateBlock (Algorithm)
- Copyright 2008:
- L1 Identiy Solutions
- Project:
- Foundation Bridge
- Language and Compiler:
- C, tested with Microsoft Visual C++ 8.0 SP1
Typedef Documentation
Function Documentation
Add a sample to a modality/instance combination of an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be modifed |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| data | pointer to data blob of this sample |
| datasize | size of data blob |
| checksum | checksum of data blob. If data blob is found to be inconsistent with this checksum false will be returned. Pass in 0 if no check is required. |
Add a template block to a paritcular sample in an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be modified |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| algorithm | FbsAlgorithm specifying a particular alogorithmic template block |
| data | pointer to data blob of this algorithmic template of this sample |
| datasize | size of data blob |
| checksum | checksum of data blob. If data blob is found to be inconsistent with this checksum false will be returned. Pass in 0 if no check is required. |
Delete a particular sample in one modality/instance combination of an FbsIdRecordHandle given its sampleId
- Parameters:
-
| handle | FbsIdRecordHandle to be modified |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| blob | output paramater which will contain the data blob of this sample. Call fbsDestroyBlob on this handle when done. See note on fbsIdRecordSerializeOut for more details on what to pass in for this parameter. |
Determine the existance of a particualr algorithmic template block in sample controlled by this FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| algorithm | FbsAlgorithm specifying a particular alogorithmic template block |
| outExist | output paramater specifying if this alogortihmic template blocks exists in this particlar sample of this FbsIdRecordHandle. |
Determine existance of modality/instance combination in an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| outExist | output paramater specifying if this modality/instance combinations exists. |
Retrieve the number of samples in one modality/instance combination of an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| outNumberOfSamples | output paramater specifying the number of samples for this modality/instance combinations in this FbsIdRecordHandle. |
Retrieve the sampleId of the nth sample in one modality/instance combination of an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| index | range from 0 up to the number returned by fbsIdRecordGetNumberOfSamples-1. |
| sampleId | output paramater specifying the sampleId of this sample of this modality/instance combination in this FbsIdRecordHandle. |
Serialize out a particular sample in one modality/instance combination of an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| blob | output paramater which will contain the data blob of this sample. Call fbsDestroyBlob on this handle when done. See note on fbsIdRecordSerializeOut for more details on what to pass in for this parameter. |
Serialize out a particular algorithmic template block of a specified sample in one modality/instance combination of an FbsIdRecordHandle
- Parameters:
-
| handle | FbsIdRecordHandle to be queried |
| modality | FbsModality specifying the modality of this BioRecord (face ,finger, etc) |
| modality | FbsInstance specifying the instance of this BioRecord (left index finger, right iris, frontalFace) |
| sampleId | uniquely identifying this sample in this modality/instance combination of an FbsIdRecordHandle |
| algorithm | FbsAlgorithm specifying a particular alogorithmic template block |
| blob | output paramater which will contain the data blob of this algorithmic template block. Call fbsDestroyBlob on this handle when done. See note on fbsIdRecordSerializeOut for more details on what to pass in for this parameter. |
Searialize in the entire contents of an FbsIdRecordHandle
- Parameters:
-
| handle | destination FbsIdRecordHandle which will contain the serialzed template data |
| data | pointer to source data blob with the FbsIdRecordHandle contents |
| datasize | size of source data blob |
| checksum | checksum of source data blob. If data blob is found to be inconsistent with this checksum false will be returned. Pass in 0 if no check is required. |
Set the personId of this FbsIdRecordHandle. The personId is a non-unqiue identifer.
- Parameters:
-