Its compact design conserves desk space in enterprises, and its professional, modern appearance looks elegant in point-of sale environments. Picture.Image = new Bitmap(bitmap, Picture.The DigitalPersona 4500 fingerprint reader is a USB peripheral perfect for individual desk top users, as well as multiple users in shared environments. Protected void MakeReport(string message) Protected DPFP.FeatureSet ExtractFeatures(DPFP.Sample Sample, Purpose)ĭ Extractor = new () // Create a feature extractorĭ feedback = ĭPFP.FeatureSet features = new DPFP.FeatureSet() Įxtractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features) // TODO: return features as a result? Protected Bitmap ConvertSampleToBitmap(DPFP.Sample Sample)ĭ Convertor = new () // Create a sample convertor.īitmap bitmap = null // TODO: the size doesn't matterĬonvertor.ConvertToPicture(Sample, ref bitmap) // TODO: return bitmap as a result MakeReport("The quality of the fingerprint sample is poor.") MakeReport("The quality of the fingerprint sample is good.") Public void OnSampleQuality(object Capture, string ReaderSerialNumber, CaptureFeedback) MakeReport("The fingerprint reader was disconnected.") Public void OnReaderDisconnect(object Capture, string ReaderSerialNumber) MakeReport("The fingerprint reader was connected.") Public void OnReaderConnect(object Capture, string ReaderSerialNumber)
MakeReport("The fingerprint reader was touched.") Public void OnFingerTouch(object Capture, string ReaderSerialNumber) MakeReport("The finger was removed from the fingerprint reader.") Public void OnFingerGone(object Capture, string ReaderSerialNumber) SetPrompt("Scan the same fingerprint again.") MakeReport("The fingerprint sample was captured.") Public void OnComplete(object Capture, string ReaderSerialNumber, DPFP.Sample Sample) Private void CaptureForm_FormClosed(object sender, FormClosedEventArgs e) Private void CaptureForm_Load(object sender, EventArgs e) SetPrompt("Using the fingerprint reader, scan your fingerprint.") Protected virtual void Process(DPFP.Sample Sample)ĭrawPicture(ConvertSampleToBitmap(Sample)) MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) SetPrompt("Can't initiate capture operation!") Public partial class CaptureForm : Form, Ĭapturer = new () // Create a capture operation.Ĭapturer.EventHandler = this // Subscribe for capturing events. * NOTE: This form is a base for the EnrollmentForm and the VerificationForm,Īll changes in the CaptureForm will be reflected in all its derived forms. Sharing here in case anyone needs to implement in projects alike. I found the example for using the SDK's API. Image.ConvertToPicture(sample, ref picture_result)
SampleConversion image = new SampleConversion() Public EventHandler ĮventHandler.OnFingerTouch(fingerprint,fingerprint.ReaderSerialNumber) ĮventHandler.OnComplete(fingerprint,fingerprint.ReaderSerialNumber,sample) Public DPFP.Sample sample = new DPFP.Sample()
Any information or guide is highly appreciate it.
My question is how to setup to load the EventHandlers and how to obtain the fingerprint in a bitmap image. I have searched for examples, but was unable to find any descriptive one. However, I´m not interested in using the GUI version. I have read the API documentation and saw the sample program they provided. I'm using a DigitalPersona reader UareU 4500. I'm new to coding with biometric sensors and DLLs in C#.