Guest User

Untitled

a guest
Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. for (int x = 0; x < (arr.Length - 1); x++)
  2. {
  3. byte[] fpbyte = GetStringToBytes(arr[x]);
  4. Stream stream = new MemoryStream(fpbyte);
  5. Data.Templates[x] = new DPFP.Template(stream);
  6. }
  7. foreach (DPFP.Template template in Data.Templates)
  8. {
  9. // Get template from storage.
  10. if (template != null)
  11. {
  12. // Compare feature set with particular template.
  13. ver.Verify(FeatureSet, template, ref res);
  14. Data.IsFeatureSetMatched = res.Verified;
  15. Data.FalseAcceptRate = res.FARAchieved;
  16. if (res.Verified)
  17. MessageBox.Show("Yes");
  18. break; // success
  19. }
  20. }
  21.  
  22. if (!res.Verified)
  23. Status = DPFP.Gui.EventHandlerStatus.Failure;
  24. MessageBox.Show("No");
  25.  
  26. Data.Update();
Add Comment
Please, Sign In to add comment