如何将数字人物指纹设备与Android连接

a6b3iqyw  于 2023-05-15  发布在  Android
关注(0)|答案(1)|浏览(124)

**Android版数字角色SDK:**我想将数字角色指纹设备与Android连接。意味着我需要像这个应用程序的Android源代码.像这个应用程序:https://play.google.com/store/apps/details?id=com.digitalpersona.digitalpersona

import com.digitalpersona.uareu.*;
public void run(){

try {
        // Pick first available reader
        ReaderCollection rc = UareUGlobal.GetReaderCollection();
        rc.GetReaders();
        r = rc.get(0);
        if (r==null)
            return;

        // Open Reader
        r.Open(Reader.Priority.COOPERATIVE);
        System.out.println(r.GetStatus().status); // Outputs READY

        // The following call just hangs and never returns...
        Reader.CaptureResult
                cr = r.Capture(Fid.Format.ISO_19794_4_2005, Reader.ImageProcessing.IMG_PROC_DEFAULT, 500, -1);
        System.out.println(cr.quality.name()); // Just to test

    } catch (UareUException e) {
        e.printStackTrace();
    }
}

相关问题