FingerMatcher.compareTemplateRecords Method¶
Module: FingerMatcher
Definition¶
Compares two template records and outputs a score.
The score is normalized to take into account the number of fingers/views inside each record
compare_template_records(self, reference_record: FingerTemplateRecord, probe_record: FingerTemplateRecord, trust_filled_positions: bool) -> int
Parameters
reference_record
FingerTemplateRecordin Reference template record.probe_record
FingerTemplateRecordin Probe template record.trust_filled_positions
boolin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).
Returns
int
Comparison score, in the range 0 to 65535.See FingerMatcherThreshold to set a threshold to take a match/no-match decision.
Exceptions
An error has occurred during Finger Library execution.
int compareTemplateRecords(FingerTemplateRecord referenceRecord, FingerTemplateRecord probeRecord, bool trustFilledPositions)
Parameters
referenceRecord
FingerTemplateRecordin Reference template record.probeRecord
FingerTemplateRecordin Probe template record.trustFilledPositions
boolin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).
Returns
int
Comparison score, in the range 0 to 65535.See FingerMatcherThreshold to set a threshold to take a match/no-match decision.
Exceptions
An error has occurred during Finger Library execution.
public int CompareTemplateRecords(FingerTemplateRecord referenceRecord, FingerTemplateRecord probeRecord, bool trustFilledPositions)
Parameters
referenceRecord
FingerTemplateRecordin Reference template record.probeRecord
FingerTemplateRecordin Probe template record.trustFilledPositions
boolin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).
Returns
int
Comparison score, in the range 0 to 65535.See FingerMatcherThreshold to set a threshold to take a match/no-match decision.
Exceptions
An error has occurred during Finger Library execution.
public int compareTemplateRecords(FingerTemplateRecord referenceRecord, FingerTemplateRecord probeRecord, boolean trustFilledPositions) throws FingerException
Parameters
referenceRecord
FingerTemplateRecordin Reference template record.probeRecord
FingerTemplateRecordin Probe template record.trustFilledPositions
booleanin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).
Returns
int
Comparison score, in the range 0 to 65535.See FingerMatcherThreshold to set a threshold to take a match/no-match decision.
Exceptions
An error has occurred during Finger Library execution.
public func compareTemplateRecords(referenceRecord: FingerTemplateRecord, probeRecord: FingerTemplateRecord, trustFilledPositions: Bool) throws -> Int32
Parameters
referenceRecord
FingerTemplateRecordin Reference template record.probeRecord
FingerTemplateRecordin Probe template record.trustFilledPositions
Boolin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).
Returns
Int
Comparison score, in the range 0 to 65535.See FingerMatcherThreshold to set a threshold to take a match/no-match decision.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerMatcher_CompareTemplateRecords (
ID3_FINGER_MATCHER hFingerMatcher,
ID3_FINGER_TEMPLATE_RECORD hReferenceRecord,
ID3_FINGER_TEMPLATE_RECORD hProbeRecord,
bool trustFilledPositions,
int * score)
Parameters
hFingerMatcher
ID3_FINGER_MATCHERin Handle to the FingerMatcher object.hReferenceRecord
ID3_FINGER_TEMPLATE_RECORDin Reference template record.hProbeRecord
ID3_FINGER_TEMPLATE_RECORDin Probe template record.trustFilledPositions
boolin If True, template(s) of one position in reference will be compared only to the templates of the same position in probe. If False, all templates in reference will be compared to all templates in probe (this method is also known as ‘flat’ comparison).score
int *out Comparison score, in the range 0 to 65535.
Returns