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)

Copyright 2008:
L1 Identiy Solutions
Project:
Foundation Bridge
Language and Compiler:
C, tested with Microsoft Visual C++ 8.0 SP1

Typedef Documentation

typedef IdRecordStruct* FbsIdRecordHandle

Handle to packet of algorithmic templates. FbsIdRecordHandle is generated by FbsTemplateCreatorHandle and are added/retrieved to/from FbsTemplateMatcherHandle.


Function Documentation

FbsIdRecordHandle fbsCreateIdRecord (  ) 

Create an empty FbsIdRecordHandle

Returns:
FbsIdRecordHandle

bool fbsDestroyIdRecord ( FbsIdRecordHandle &  handle  ) 

Destroy an FbsIdRecordHandle

Parameters:
handle FbsIdRecordHandle to be destroyed. Reference will be set to 0.

bool fbsIdRecordAddSerializedSample ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId,
const char *  data,
int  datasize,
FBSuint64  checksum 
)

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.

bool fbsIdRecordAddSerializedTemplateBlock ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId,
FbsAlgorithm  algorithm,
const char *  data,
int  datasize,
FBSuint64  checksum 
)

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.

bool fbsIdRecordDeleteSample ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId 
)

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.

bool fbsIdRecordExistAlgorithmOfSampleId ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId,
FbsAlgorithm  algorithm,
bool &  outExist 
)

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.

bool fbsIdRecordExistBioRecord ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
bool &  outExist 
)

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.

bool fbsIdRecordGetNumberOfSamples ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
int &  outNumberOfSamples 
)

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.

bool fbsIdRecordGetSampleIdByIndex ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
int  index,
FBSuint64 &  sampleId 
)

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.

bool fbsIdRecordGetSerializedSample ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId,
FbsBlobHandle &  blob 
)

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.

bool fbsIdRecordGetSerializedTemplateBlock ( FbsIdRecordHandle  handle,
FbsModality  modality,
FbsInstance  instance,
FBSuint64  sampleId,
FbsAlgorithm  algorithm,
FbsBlobHandle &  blob 
)

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.

bool fbsIdRecordReadFromFile ( FbsIdRecordHandle  handle,
const char *  filename 
)

Read in the entire contents of an FbsIdRecordHandle from a file

Parameters:
handle destination FbsIdRecordHandle
filename filename

bool fbsIdRecordSerializeIn ( FbsIdRecordHandle  handle,
const char *  data,
int  datasize,
FBSuint64  checksum 
)

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.

bool fbsIdRecordSerializeOut ( FbsIdRecordHandle  handle,
FbsBlobHandle &  blob 
)

Searialize out the entire contents of an FbsIdRecordHandle

Parameters:
handle source FbsIdRecordHandle
blob destination FbsBlobHandle which will contain all of the FbsIdRecordHandle contents as a data blob. FbsBlobHandle does not need to be created by calling fbsCreateBlob, but if it isn't it should be set equal to 0.
FbsBlobHandle fblobHandle= 0;

fbsIdRecordSerializeOut(fbsIdRecordHandleL, fblobHandle);

OR

FbsBlobHandle fblobHandle= fbsCreateBlob();

fbsIdRecordSerializeOut(fbsIdRecordHandleL, fblobHandle);

In either case call fbsDestroyBlob when done.

bool fbsIdRecordSetPersonId ( FbsIdRecordHandle  handle,
FBSuint64  id 
)

Set the personId of this FbsIdRecordHandle. The personId is a non-unqiue identifer.

Parameters:
handle FbsIdRecordHandle to be modified
id personId that is to be associated with this FbsIdRecordHandle. If the FbsIdRecordHandle was reconstructured from composite template blocks or samples then you must call this function before adding the FbsIdRecordHandle to a FbsTemplateMatcherHandle. If the FbsIdRecordHandle was created by a call to fbsTemplateCreatorCreateTemplates, then the personId and transactionId used in that call will be preserved but can modified with this function. The same holds true if the FbsIdRecordHandle was initialized with data by serializing in a pre-exisitng FbsIdRecordHandle. The ids will be in that scenario preserved as well but can be modified by fbsIdRecordSetPersonId and fbsIdRecordSetTransactionId.

bool fbsIdRecordSetPersonIdx32 ( FbsIdRecordHandle  handle,
FBSuint32  high,
FBSuint32  low 
)

bool fbsIdRecordSetTransactionId ( FbsIdRecordHandle  handle,
FBSuint64  id 
)

Set the transactionId of this FbsIdRecordHandle. The transactionId is a unqiue identifer of this FbsIdRecordHandle in a FbsTemplateMatcherHandle.

Parameters:
handle FbsIdRecordHandle to be modified
id transactionId that is to be associated with this FbsIdRecordHandle. If the FbsIdRecordHandle was reconstructured from composite template blocks or samples then you must call this function before adding the FbsIdRecordHandle to a FbsTemplateMatcherHandle. If the FbsIdRecordHandle was created by a call to fbsTemplateCreatorCreateTemplates, then the personId and transactionId used in that call will be preserved but can modified with this function. The same holds true if the FbsIdRecordHandle was initialized with data by serializing in a pre-exisitng FbsIdRecordHandle. The ids will be in that scenario preserved as well but can be modified by fbsIdRecordSetPersonId and fbsIdRecordSetTransactionId.

bool fbsIdRecordSetTransactionIdx32 ( FbsIdRecordHandle  handle,
FBSuint32  high,
FBSuint32  low 
)

bool fbsIdRecordWriteToFile ( FbsIdRecordHandle  handle,
const char *  filename 
)


Generated on Wed Jun 17 16:45:08 2009 for ABIS Foundation SDK by  doxygen 1.5.8