简体   繁体   English

指纹扫描仪使用Android设备的相机

[英]Fingerprint scanner using camera of android device

I m trying to implement, capture finger image and then scan that image and get the biometric fingerprints from that image and then finaly sending that image to server. 我试图实现,捕获手指图像然后扫描该图像并从该图像获取生物识别指纹,然后最终将该图像发送到服务器。 Basically i dont have idea to work on image processing of these. 基本上我没有想过要对这些图像进行处理。 so i tried Onyx SDK and the problem solved. 所以我尝试了Onyx SDK,问题解决了。 but its a trail version. 但它是一个小道版本。 Now i need to know what are the proces undergoes inorder to get biometic image of finger, like cropping, inverting, contrasting, etc . 现在我需要知道为了获得手指的生物图像,过程经历了什么过程,如裁剪,反转,对比等。 Can anyone tell me the steps to undergone for image processing. 任何人都可以告诉我图像处理的步骤。 Or anyother open source sdk for fingerprint sensor. 或者用于指纹传感器的任何其他开源sdk。 Ur help is much appreciated. Ur帮助非常感谢。

I m just trying to do something like this. 我只是想做这样的事情。 在此输入图像描述 在此输入图像描述

say img one is captured image and imge two is after reconizing the biometric fingerprint 说img one是捕获的图像,imge two是在重新生成生物识别指纹之后

Basically what you need to do is "match" two images of fingertips: one is the original image of the authorised user's fingertip and the other one is the image of the fingertip the camera just captured. 基本上你需要做的是“匹配”指尖的两个图像:一个是授权用户指尖的原始图像,另一个是相机刚拍摄的指尖图像。

If the two images "match" then the camera captured the authorised user's fingertip and you shall let her in, otherwise access is to be denied. 如果两个图像“匹配”,则摄像机捕获授权用户的指尖,您应该让她进入,否则将拒绝访问。

Here's the steps I'd fallow to evaluate "matching" between to fingertip images: 这是我用来评估指尖图像之间“匹配”的步骤:

  1. Crop the essential part : you can crop an area at the center of the image, or put a square area in overlay on the CameraPreview and ask the user to capture the camera image when this square area is completely covered by her fingertip. 裁剪基本部分 :您可以裁剪图像中心的区域,或在CameraPreview上叠加一个方形区域,并要求用户在指尖完全覆盖此方形区域时捕捉摄像机图像。 Then crop out what's inside that square. 然后裁掉那个广场里面的东西。

  2. Equalize the cropped image : equalization gives more contrast and betters the image in general. 均衡裁剪后的图像 :均衡可提供更高的对比度,并且通常可以提升图像。

  3. Detect edges : by detecting edges you'll obtain something like the black and white image you posted, with only the fingerprint lines showing. 检测边缘 :通过检测边缘,您将获得类似您发布的黑白图像,只显示指纹线。

  4. Apply SIFT : with SIFT you extract "features" which are Scale-invariant (alsto rotation, tilt, light...-invariant) representations of points in your image. 应用SIFT :使用SIFT,您可以提取“特征”,这些特征是图像中点的不变(旋转,倾斜,光......不变)。 Using these features you can compare two images: they match if features can be found in both images. 使用这些功能,您可以比较两个图像:如果可以在两个图像中找到特征,则它们匹配。


Let's give a little practical example 让我们举一个实际的例子

Step 1: Original image 第1步:原始图像

Here's the original user's fingertip image 这是原始用户的指尖图像

在此输入图像描述

Step 2: Cropping 第2步:裁剪

We crop it to just the fingertip 我们将它裁剪成指尖

在此输入图像描述

Step 3: Equalization 第3步:均衡

We equalize the cropped image 我们均衡了裁剪后的图像

在此输入图像描述

Step 4: Edges 第4步:边缘

We find the edges 我们找到了边缘

在此输入图像描述

Now we can save this image and keep it for future authentication reference. 现在我们可以保存此图像并保留以供将来的身份验证参考。

Step 5: New image captured 第5步:捕获新图像

When a new image of a fingertip is acquired by the camera 当相机获取指尖的新图像时

在此输入图像描述

Step 6: Process new image 第6步:处理新图像

We process it just like the original one 我们处理它就像原始的一样

在此输入图像描述

Step 7: Matching 第7步:匹配

Finally we use SIFT to match the original image wit the new one 最后,我们使用SIFT将原始图像与新图像匹配

在此输入图像描述

See that, even if some point is mismatched (10%), most of them (90%, the big central group) matches correctly. 看到这一点,即使某些点不匹配(10%),其中大多数(90%,大中心组)也能正确匹配。 In this example SIFT finds 20 points of match, you could also set a threshold for feature quality which improves matches. 在此示例中,SIFT找到20个匹配点,您还可以设置特征质量的阈值以改善匹配。


With Android 随着Android

To do all this stuff with Android, you could use the OpenCV Android Library which has utils for pretty much everything, including SIFT 要使用Android完成所有这些工作,您可以使用OpenCV Android库 ,它具有几乎所有功能, 包括SIFT

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM