Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to read data from finger print reader and convert into image file. I am using Digital Persona 's device U and U 4500 with Platinum SDK . I am new biometric field. Till now I am only able to detect the device means whether it is connected to system or not.Please guide me what should i do to accomplish this task

i have used this Code(only to check whether device is working )

Java
import com.digitalpersona.onetouch.DPFPGlobal;
import com.digitalpersona.onetouch.DPFPSample;
import com.digitalpersona.onetouch.capture.DPFPCapture; 
import com.digitalpersona.onetouch.capture.event.DPFPDataEvent;
import com.digitalpersona.onetouch.capture.event.DPFPDataListener;
import com.digitalpersona.onetouch.capture.event.DPFPErrorEvent;
import com.digitalpersona.onetouch.capture.event.DPFPErrorListener;
import com.digitalpersona.onetouch.capture.event.DPFPReaderStatusAdapter; 
import com.digitalpersona.onetouch.capture.event.DPFPReaderStatusEvent;
import com.digitalpersona.onetouch.capture.event.DPFPReaderStatusListener;
import com.digitalpersona.onetouch.capture.event.DPFPSensorEvent;
import com.digitalpersona.onetouch.capture.event.DPFPSensorListener;


public class Demo {
public static void main(String args[]){
//byte[] a=null;
DPFPCapture capture=DPFPGlobal.getCaptureFactory().createCapture();
capture.addReaderStatusListener(new DPFPReaderStatusListener() {

    @Override
    public void readerDisconnected(DPFPReaderStatusEvent arg0) {
         //TODO Auto-generated method stub
        System.out.println("I m Dis-connected");

    }

    @Override
    public void readerConnected(DPFPReaderStatusEvent arg0) {
        // TODO Auto-generated method stub
        System.out.println("I m connected");
    }
});
capture.addSensorListener(new DPFPSensorListener() {

    @Override
    public void imageAcquired(DPFPSensorEvent arg0) {
        // TODO Auto-generated method stub
        System.out.print("acquired");
    }

    @Override
    public void fingerTouched(DPFPSensorEvent arg0) {
        // TODO Auto-generated method stub
        System.out.print("s");
    }

    @Override
    public void fingerGone(DPFPSensorEvent arg0) {
        // TODO Auto-generated method stub
        System.out.print("gone");
    }
});
capture.startCapture();
capture.addDataListener(new DPFPDataListener() {

    @Override
    public void dataAcquired(DPFPDataEvent arg0) {
        // TODO Auto-generated method stub
        DPFPSample sample=DPFPGlobal.getSampleFactory().createSample();
        sample=arg0.getSample();    
        byte a[]=sample.serialize();
        for(byte i:a){
            System.out.print(i);
        }
    }
});
capture.addErrorListener(new DPFPErrorListener() {

    @Override
    public void exceptionCaught(DPFPErrorEvent arg0) {
        // TODO Auto-generated method stub
        System.out.println("error");
    }

    @Override
    public void errorOccured(DPFPErrorEvent arg0) {
        // TODO Auto-generated method stub
        System.out.println("error");

    }
});

}
Posted
Updated 18-Oct-12 3:21am
v2
Comments
Member 11319268 18-Dec-14 2:46am    
Hello,
I need same code in php can u provide it

1 solution

I am using Digital Persona 's device U and U 4500 with Platinum SDK .

Then you need to read the documentation for the SDK to find out how to interpret the information presented by the device.
 
Share this answer
 
Comments
refisoft 31-Dec-12 4:38am    
public void dataAcquired(DPFPDataEvent arg0) {
// TODO Auto-generated method stub
DPFPSample sample=DPFPGlobal.getSampleFactory().createSample();
sample=arg0.getSample();
byte a[]=sample.serialize();
for(byte i:a){
System.out.print(i);
}


}

this methode in not working and no data can acquire
Richard MacCutchan 31-Dec-12 5:02am    
Sorry but I have no idea how this device works. If there is not enough information in the documentation then you need to contact the manufacturer.
refisoft 31-Dec-12 5:06am    
public void readerConnected(DPFPReaderStatusEvent arg0) {
// TODO Auto-generated method stub
System.out.println("I m connected");
}
this methode is functioning i am using U are U 4500 reader
Richard MacCutchan 31-Dec-12 5:18am    
See my comment above.
refisoft 31-Dec-12 5:21am    
k thankyou.c u.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900