javatobiokey.java
来自「BS 架构的指纹识别技术」· Java 代码 · 共 59 行
JAVA
59 行
package zk.jni;
/************************************************
JavaToBiokey
JNI 接口对象
2008.11 By sky
fingerprinter@126.com
If you needs the tec please conn mb:13598873075 Li
*************************************************/
public class JavaToBiokey{
//DLL库函数接口
public native boolean NativeToProcess(String ARegTemplate, String AVerTemplate);
public native void NativeToSetThreshold(int AThreshold, int AOneToOneThreshold);
public native void NativeTest(int i, String str);
//调用库函数接口,确认参数有效
public boolean ToProcess(String ARegTemplate, String AVerTemplate)
{
try
{
// System.out.println("调用比对指纹函数!");
//System.out.println(NativeToProcess(ARegTemplate, AVerTemplate));
return NativeToProcess(ARegTemplate, AVerTemplate);
}catch(Exception e)
{
return false;
}
}
public void ToSetThreshold(int AThreshold, int AOneToOneThreshold)
{
try
{
NativeToSetThreshold(AThreshold, AOneToOneThreshold);
}catch(Exception e)
{
;
}
}
public void NativeTest1(int i, String str)
{
try
{
NativeTest(i, str);
}catch(Exception e)
{
;
}
}
static
{
//加载动态库
System.loadLibrary("matchdll"); //
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?