如何将数字人物指纹设备连接到安卓。

huangapple go评论83阅读模式
英文:

How to connect digital persona fingerprint device with an android

问题

我想要连接数字人员指纹设备到Android。这意味着我需要Android应用程序的源代码。

像这个应用程序:
https://play.google.com/store/apps/details?id=com.digitalpersona.digitalpersona

import com.digitalpersona.uareu.*; 

private void start_scanning() {
    try {
        // 选择第一个可用的读取器
        ReaderCollection rc = UareUGlobal.GetReaderCollection();
        rc.GetReaders();
        r = rc.get(0);
        if (r==null)
            return;

        // 打开读取器
        r.Open(Reader.Priority.COOPERATIVE);
        System.out.println(r.GetStatus().status); // 输出READY

        // 以下调用会一直挂起并且不返回...
        Reader.CaptureResult
                cr = r.Capture(Fid.Format.ISO_19794_4_2005, Reader.ImageProcessing.IMG_PROC_DEFAULT, 500, -1);
        System.out.println(cr.quality.name()); // 仅用于测试

    } catch (UareUException e) {
        e.printStackTrace();
    }
}
英文:

I want to connect digital persona fingerprint device with an Android. This means I need the app source code for Android.

Like this app:
https://play.google.com/store/apps/details?id=com.digitalpersona.digitalpersona

import com.digitalpersona.uareu.*; 

private void start_scanning() {
    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();
    }
}

答案1

得分: 0

"contact with ReaderCollection rc = UareUGlobal.GetReaderCollection(); rc.GetReaders();"
"与 ReaderCollection rc = UareUGlobal.GetReaderCollection(); rc.GetReaders(); 联系"

英文:

contact with

 ReaderCollection rc = UareUGlobal.GetReaderCollection();
        rc.GetReaders();

http://digital.persona.sdk.android.brainwaveappstudio.com/

huangapple
  • 本文由 发表于 2023年5月13日 21:45:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243048.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定