捕获并比较指纹图像



我正在开发一个使用指纹识别的考勤管理系统。所以我想要的是比较扫描仪生成的两个bmp图像。我听说过神经网络,但我不知道如何实现它。有什么解决办法吗?

您不想从头开始开发它,您需要像Digital Persona软件开发工具包这样的东西。

还有其他的,但这就是我今晚使用的:)

还有这个问题:开源或免费指纹读取器SDK。

编辑添加:

如果您不能使用 NITGEN SDK,那么您可能不会在项目中取得成功。当您比较"指纹"时,您实际上并不是在比较图像,而是在比较从图像中提取的关键点(标记)列表。

如果你从头开始,这将需要很长时间。4年前,我使用Griaule Biometrics制作了这个项目。它就像一个魅力。添加对操作指纹扫描程序所需的 DLL 的引用。

我想你正在寻找:

https://github.com/cameronmcefee/Image-Diff-View-Modes/commit/8e95f70c9c47168305970e91021072673d7cdad8

对于简单的方法:

   1: private bool ImageCompareArray(Bitmap firstImage, Bitmap secondImage) 
   2: {
   3:     bool flag = true;
   4:     string firstPixel;
   5:     string secondPixel;
   6:  
   7:     if (firstImage.Width == secondImage.Width 
   8:         && firstImage.Height == secondImage.Height)
   9:     {
  10:         for (int i = 0; i < firstImage.Width; i++)
  11:         {
  12:             for (int j = 0; j < firstImage.Height; j++)
  13:             {
  14:                 firstPixel = firstImage.GetPixel(i, j).ToString();
  15:                 secondPixel = secondImage.GetPixel(i, j).ToString();
  16:                 if (firstPixel != secondPixel)
  17:                 {
  18:                     flag = false;
  19:                     break;
  20:                 }
  21:             }
  22:         }
  23:  
  24:         if (flag == false)
  25:         {
  26:             return false;
  27:         }
  28:         else
  29:         {
  30:             return true;
  31:         }
  32:     }
  33:     else
  34:     {
  35:         return false;
  36:     }
  37: }

另请参阅:http://blogs.msdn.com/b/domgreen/archive/2009/09/06/comparing-two-images-in-c.aspx

最新更新