FaceTemplate.toBit Method¶
Module: FaceTemplate
Definition¶
Exports the face template as a Biometric Information Template (BIT) for enrolment on a smart card equipped with id3 Match-on-Card technology.
Note
The threshold value is required and should be set according to the used Face Encoder and desired security level.
Important
The reference data qualifier (RDQ) should be defined in accordance with the smart card application specifications.
to_bit(self, threshold: int, reference_data_qualifier: int) -> bytearray
Parameters
thresholdintin The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.reference_data_qualifierintin Reference data qualifier.
Returns
bytearrayA buffer that receives the biometric information template.
Exceptions
An error has occurred during Face Library execution.
Uint8List toBit(int threshold, int referenceDataQualifier)
Parameters
thresholdintin The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifierintin Reference data qualifier.
Returns
Uint8ListA buffer that receives the biometric information template.
Exceptions
An error has occurred during Face Library execution.
public byte[] ToBit(int threshold, int referenceDataQualifier)
Parameters
thresholdintin The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifierintin Reference data qualifier.
Returns
byte[]A buffer that receives the biometric information template.
Exceptions
An error has occurred during Face Library execution.
public byte[] toBit(int threshold, int referenceDataQualifier) throws FaceException
Parameters
thresholdintin The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifierintin Reference data qualifier.
Returns
byte[]A buffer that receives the biometric information template.
Exceptions
An error has occurred during Face Library execution.
public func toBit(threshold: Int32, referenceDataQualifier: Int32) throws -> [UInt8]
Parameters
thresholdInt32in The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifierInt32in Reference data qualifier.
Returns
[UInt8]A buffer that receives the biometric information template.
Exceptions
An error has occurred during Face Library execution.
int id3FaceTemplate_ToBit (
ID3_FACE_TEMPLATE hFaceTemplate,
int threshold,
int referenceDataQualifier,
unsigned char * data,
int * dataSize)
Parameters
hFaceTemplateID3_FACE_TEMPLATEin Handle to the FaceTemplate object.thresholdintin The decision threshold, from 0 to 653535, to be applied during the face comparison on the smart card. See FaceMatcherThreshold for a list of typical values.referenceDataQualifierintin Reference data qualifier.dataunsigned char *out A buffer that receives the biometric information template.dataSizeint *in Size of the ‘data’ buffer. Receives the number of elements in the ‘data’ array.
Returns