Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int x = 0; x < (arr.Length - 1); x++)
- {
- byte[] fpbyte = GetStringToBytes(arr[x]);
- Stream stream = new MemoryStream(fpbyte);
- Data.Templates[x] = new DPFP.Template(stream);
- }
- foreach (DPFP.Template template in Data.Templates)
- {
- // Get template from storage.
- if (template != null)
- {
- // Compare feature set with particular template.
- ver.Verify(FeatureSet, template, ref res);
- Data.IsFeatureSetMatched = res.Verified;
- Data.FalseAcceptRate = res.FARAchieved;
- if (res.Verified)
- MessageBox.Show("Yes");
- break; // success
- }
- }
- if (!res.Verified)
- Status = DPFP.Gui.EventHandlerStatus.Failure;
- MessageBox.Show("No");
- Data.Update();
Add Comment
Please, Sign In to add comment