英文:
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();
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论