Digital Persona Fingerprint Scanner Php

  1. Digital Persona Fingerprint Scanner Php Code
  2. Digital Persona Fingerprint Scanner Php Tutorial
  3. Digital Persona Fingerprint Software
  4. Digital Persona Fingerprint

In a previous post, I used the BioMini fingerprint scanner to generate a bitmap image of a fingerprint. I used the Neurotechnology Free Fingerprint Verification SDK with the BioMini hardware.

DigitalPersona Fingerprint Reader Computer Scanners Fingerprint scanners combine convenience and security into an easy-to-use USB plug-and-play scanner. DigitalPersona fingerprint reader computer scanners are able to replace conventional alphanumeric logins. Select a finger from one of the model hands, and then swipe your fingertip downward on the Digital Fingerprint Reader. Adjust the speed of how fast or slow you swipe your fingertip on the Digital Fingerprint Reader until the fingertip is recognized and accepted.

As part of the process, I created an interface which allowed me to enroll a fingerprint, and create the image, which defines a good surface for all I want to do at the moment. I designed this interface based on the very small amount of knowledge I have of fingerprint scanners and SDKs – so I was still interested to see if this interface would be useful (or even workable) for another scanner and SDK.

Digital Persona Fingerprint Scanner Php Code

To test this, I started looking for other scanners and SDKs – and one candidate which looked very suitable was the digitalPersona U.are.U 4000B sensor. This has a .NET SDK available, but make sure that when you are buying the scanner device that you get the SDK as well – it’s possible to purchase these separately.

Digital Persona Fingerprint Scanner Php

This SDK comes with a couple of sample Windows applications – but I’ve a personal preference to try to get things to work in a console application, just because it allows me to focus more on the code to get the scanner working (and less on the code to get the Windows app working). So I decided to write a Console application for the U.are.U 4000B scanner.

There are a few simple steps:

Digital Persona Fingerprint Scanner PhpDigital Persona Fingerprint Scanner Php
  1. Add references to the libraries DPFPDevNET.dll and DPFPShrNET.dll, both of which come with the SDK;
  2. Instantiate a DPFP.Capture.Capture object;
  3. Associate an event handler class with this Capture object, which has handlers for the events:
    • OnComplete;
    • OnFingerGone;
    • OnFingerTouch;
    • OnReaderConnect;
    • OnReaderDisconnect;
    • OnSampleQuality.
  4. Begin capturing a fingerprint from the scanner by calling the StartCapture method from the Capture object.
  5. After placing your finger on the reader, the event OnFingerTouch will be fired.
  6. After the scan has successfully complete, the OnComplete event is fired.
    • A parameter of the OnComplete handler contains information about the scanned fingerprint.
  7. Stop capturing a fingerprint from the scanner by calling the StopCapture method from the Capture object.

This seemed pretty straightforward – I wrote the class below.

And this allowed me to write the following simple program.

Digital Persona Fingerprint Scanner Php Tutorial

So this is a good start – I was able to capture a fingerprint and save it to my desktop. However, this implementation doesn’t use the interface I designed last time, which has separate methods for Enroll and CreateBitmapFile. I refactored the code slightly to implement this interface.

This compiled, and I expected to be able to run the code below.

Unfortunately there was a problem – when designing the implementation, I hadn’t taken account of the fact that the device and SDK is driven by events – so after I start running the program, it’ll happily wait for someone to put their finger on the device screen and won’t block the main thread. So control flows straight on after the call to Enroll to the method which tries to create an image. However, because the fingerprint sample might hadn’t been successfully scanned at that point, I got a null reference exception.

Digital Persona Fingerprint Software

Scanner

Digital Persona Fingerprint

In the second part of this, I’ll describe how I fixed this problem, using the ManualResetEvent object.

Comments are closed.