public string[] GetPluggedFingerprint() { DPFP.Capture.ReadersCollection reader = new DPFP.Capture.ReadersCollection(); string[] tmpReader = new string[reader.Count]; for (int loop = 0; loop < reader.Count; loop++) { DPFP.Capture.ReaderDescription rd = reader[loop]; tmpReader[loop] = rd.SerialNumber; } return(tmpReader); }
public Form2() { InitializeComponent(); graphics = this.CreateGraphics(); font = new Font("Times New Roman", 12, FontStyle.Bold, GraphicsUnit.Pixel); DPFP.Capture.ReadersCollection coll = new DPFP.Capture.ReadersCollection(); regFeatures = new DPFP.FeatureSet[4]; for (int i = 0; i < 4; i++) { regFeatures[i] = new DPFP.FeatureSet(); } verFeatures = new DPFP.FeatureSet(); createRegTemplate = new DPFP.Processing.Enrollment(); readers = new DPFP.Capture.ReadersCollection(); for (int i = 0; i < readers.Count; i++) { readerDescription = readers[i]; if ((readerDescription.Vendor == "Digital Persona, Inc.") || (readerDescription.Vendor == "DigitalPersona, Inc.")) { try { capturer = new DPFP.Capture.Capture(readerDescription.SerialNumber, DPFP.Capture.Priority.Normal);//CREAMOS UNA OPERACION DE CAPTURAS. } catch (Exception ex) { MessageBox.Show(ex.Message); } capturer.EventHandler = this; //AQUI CAPTURAMOS LOS EVENTOS. converter = new DPFP.Capture.SampleConversion(); try { verify = new DPFP.Verification.Verification(); } catch (Exception ex) { MessageBox.Show("Ex: " + ex.ToString()); } break; } } }