I am developing a project in C#, for which I want to login/authenticate a user using their fingerprint.
I bought a ZK4500 Fingerprint scanner and got its SDK from http://www.zkteco.com/product/ZK4500_238.html. The SDK is in C++.
So How can I integrate this SDK with my C# project to perform the desired functionality?
You need to add reference to ZKFPEngXControl that will appear under COM Type Libraries. After that you can use the ZKFPEngX Class to do whatever you require.
and then
You can write your own method fp_OnImageReceived to handle the event. for example you can write this in that method;
Where imgdata is an array of bytes.You can also use other methods in ZKFPEngX, to achieve your goals. Remember to close the engine when form closes.
You can store a fingerprint under
OnEnroll(bool ActionResult, object ATemplate)
Event.This event will be called whenBeginEnroll()
has been executed.You can try to verify the fingerprints under
OnCapture(bool ActionResult, object ATemplate)
event. This event will be called when a finger is put on the scanner.Add an event handler on OnCapture Event:
Verify the fingerprints when the event has been called (a finger is put on the scanner):