public bool AddMinutiaTemplateProbe(Template newFingerPrintTemplate) { bool fTemplatePairFound = false; _lastScore = 0; float[] scores = _afis.IdentifyFingers(newFingerPrintTemplate, _capturedFingerPrintMinutias); if (scores.Length > 0) { for (int i = 0; i < scores.Count(); i++) { Template temp = _capturedFingerPrintMinutias[i]; float score = scores[i]; _lastScore = score; if (score > CAPTURE_ACCEPT_THRESHOLD) { fTemplatePairFound = true; if (score > _bestScore) { _bestScore = score; _otherBestFingerprintItem = i; _bestTemplate1 = newFingerPrintTemplate; _bestTemplate2 = temp; } MatchFound = true; } } } _capturedFingerPrintMinutias.Add(newFingerPrintTemplate); return(fTemplatePairFound); }
private MinutiaResult IdentifyFinger(Template probe) { MinutiaResult result = null; lock (this) { float[] scores = Afis.IdentifyFingers(probe, _fingerPrintCandidateList); if (scores.Length > 0) { for (int i = 0; i < scores.Count(); i++) { if (scores[i] > _matchThreshold) { result = new MinutiaResult(); result.Score = scores[i]; result.NoID = _fingerPrintCandidateList[i].NoID.LocalNoID; break; } } } } return(result); }