public void register(TInputData inputData, Core.Database.BiometricID biometricID) { sampleIDIterator++; //create new template Core.Template.Persistence.IPersistentTemplate mt = this.settings.getPersistentTemplateCreator().createPersistentTemplate(this.settings.Name, biometricID); //extract input data to template this.settings.getProcessingBlock().extractAndAddToNewTemplate(inputData, mt); //add to database this.getTemplateDatabase().addRecord(new Core.Database.TemplateDatabase.TemplateRecord(sampleIDIterator.ToString(), biometricID, mt)); }
/// <summary> /// verification /// TODO -> speed up by caching /// TODO -> progress reporting /// </summary> /// <param name="inputData"></param> /// <param name="biometricID"></param> /// <returns></returns> public Core.BiometricSystem.IVerificationResult verify(TInputData inputData, Core.Database.BiometricID biometricID) { this.settings.getProcessingBlock().setInputData(inputData); foreach (var record in this.getTemplateDatabase().getCollections().getRecordsByBiometricID(biometricID)) { this.settings.getProcessingBlock().resetTemplates(); int index = this.settings.getProcessingBlock().pushTemplate(record.PersistentTemplate); MatchingScore s = this.settings.getProcessingBlock().computeMatchingScore(index); IDecisionMakerResult result = this.settings.getDecisionMaker().makeDecision(s); if (result.Status == ResultStatus.ACCEPTED) { return(new VerificationResult(result, record.BiometricID)); } } return(new VerificationResult(ResultStatus.REJECTED)); }
public VerificationResult(Core.BiometricSystem.IDecisionMakerResult decisionMakerResult, Core.Database.BiometricID biometricID) : base(decisionMakerResult, biometricID) { }
public BiometricSystemResult(Core.BiometricSystem.IDecisionMakerResult decisionMakerResult, Core.Database.BiometricID biometricID) { this.status = decisionMakerResult.Status; this.matchingScore = decisionMakerResult.MatchingScore; this.biometricID = biometricID; }
/// <summary> /// construct with bioID and data /// </summary> /// <param name="bioID"></param> /// <param name="data"></param> public StandardRecord(string uid, Core.Database.BiometricID bioID, TStandardRecordData data) : this(uid, bioID) { BiometricData = data; }
/// <summary> /// construct with bio ID /// </summary> /// <param name="bioID"></param> private StandardRecord(string uid, Core.Database.BiometricID bioID) { BiometricID = bioID; SampleID = uid; //BiometricData = default(TRecord); }