public class FingerprintWithFIPS
extends java.lang.Object
注意:
Attention:
1、使用前请确认您的机器已安装此模块。
1. Make sure this module is installed before using.
2、要正常使用模块需要在\libs\armeabi\目录放置libDeviceAPI.so文件
2. Put libDeviceAPI.so file in directory \libs\armeabi\ then module can be used normally.
3、在操作设备前需要调用 init()
打开设备,使用完后调用 free()
关闭设备
3. Call init()
to switch on device before operating, call free()
to switch off device after using.
Modifier and Type | Class and Description |
---|---|
static class |
FingerprintWithFIPS.DataFormat
指纹数据格式
Fingerprint data format |
static interface |
FingerprintWithFIPS.EnrollCallBack
采集指纹回调接口
call-back contact for acquiring fingerprint |
class |
FingerprintWithFIPS.FingerprintInfo |
static interface |
FingerprintWithFIPS.GRABCallBack
指纹图像回调接口
fingerprint image call-back contact |
static interface |
FingerprintWithFIPS.IdentificationCallBack
验证指纹的回调接口
call-back contact of verify fingerprint |
static interface |
FingerprintWithFIPS.PtCaptureCallBack
获取指纹模版数据回调接口
Acquire call-back contact fingerprint template data |
static interface |
FingerprintWithFIPS.TemplateVerifyCallBack
指纹模版比对
fingerprint template comparison |
Modifier and Type | Method and Description |
---|---|
byte[] |
decryption(byte[] originalBuf,
int jdlen)
Deprecated.
|
byte[] |
decryption(byte[] originalBuf,
int jdlen,
byte[] key)
Deprecated.
|
byte[] |
decryption(byte[] originalBuf,
int jdlen,
java.lang.String key)
Deprecated.
|
int |
deleteAllFingers()
删除所有指纹信息
delete all fingerprint information |
byte[] |
Encryption(byte[] originalBuf,
int jdlen)
Deprecated.
|
byte[] |
Encryption(byte[] originalBuf,
int jdlen,
java.lang.String key)
Deprecated.
|
int |
enroll()
采集指纹
Acquire fingerprint |
boolean |
free()
释放指纹模块
Release fingerprint module |
boolean |
generateImg(byte[] data,
java.lang.String filePath)
生成bmp图片
Generate bmp |
int |
getFingersCount()
获取模块中采集的指纹数量
Acquire collected fingerprint amounts in module. |
java.lang.String |
getID()
获取指纹ID
Acquire fingerprint ID |
static FingerprintWithFIPS |
getInstance()
获取指纹模块操作实例
Acquire fingerprint module operation Instance |
FingerprintWithFIPS.FingerprintInfo |
getPTInfo()
获取模块信息
Acquire module information |
int |
grab()
采集图像
Acquire image |
boolean |
init()
初始化指纹模块
Initialize fingerprint module |
boolean |
init(Context mContext)
初始化指纹模块
Initialize fingerprint module |
boolean |
isPowerOn()
判断设备是否上电
Judge the device is powered on or not. |
int |
ptCapture()
获取指纹模版
Acquire fingerprint template |
byte[] |
ptConvertTemplateEx(FingerprintWithFIPS.DataFormat jtarget_type,
byte[] srcbuf,
int jsrclen) |
int |
responseCancel()
取消当前操作
Cancel current operation |
byte[] |
responseContinue()
继续当前操作
Continue current operation |
void |
setEnrollCallBack(FingerprintWithFIPS.EnrollCallBack callBack)
设置采集指纹回调接口
Setup call-back contact for acquiring fingerprint |
void |
setGrabCallBack(FingerprintWithFIPS.GRABCallBack callBack)
设置获取图片回调接口
Setup call-back contact for acquiring picture |
boolean |
setID(java.lang.String hexID)
设置指纹模块ID
Setup fingerprint module ID |
void |
setIdentificationCallBack(FingerprintWithFIPS.IdentificationCallBack callBack)
设置指纹验证回调接口
Setup fingerprint verification |
void |
setPtCaptureCallBack(FingerprintWithFIPS.PtCaptureCallBack callBack)
设置获取指纹模版回调接口
Setup call-back contact for acquiring fingerprint template |
void |
setTemplateVerifyCallBack(FingerprintWithFIPS.TemplateVerifyCallBack callBack)
设置模版比对回调接口
Setup call-back contact for template comparison |
void |
startEnroll()
开始采集指纹,注意:请调用
start acquire fingerprint, attention: call out setEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setEnrollCallBack(EnrollCallBack callBack) setup receviced call-back data |
void |
startGRAB()
开始获取图片,注意:请调用
start acquire picture, attention: call out setGrabCallBack(GRABCallBack callBack) 方法设置接收回调数据setGrabCallBack(GRABCallBack callBack) method to setup received call-back data. |
void |
startIdentification()
开始验证指纹,注意:请调用
start verify finerprint, attention: call out setIdentificationCallBack(IdentificationCallBack callBack) 方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack) setup receviced call-back data |
void |
startPtCapture()
开始获取指纹模版,注意:请调用
Start acquire fingerprint template, attention: call up setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) method to setup received call-back data. |
void |
startTemplateVerify(char[] template)
开始模版验证,注意:请调用
start template verification, attention: call out setTemplateVerifyCallBack(TemplateVerifyCallBack callBack) 方法设置接收回调数据setTemplateVerifyCallBack(TemplateVerifyCallBack callBack) method to setup received call-back data. |
void |
stopEnroll()
停止采集指纹
Stop acquiring fingerprint |
void |
stopGRAB()
停止获取图片
stop acquiring picture |
void |
stopIdentification()
停止指纹验证
Stop fingerprint verification |
void |
stopPtCapture()
停止获取指纹模版
Stop acquiring fingerprint template |
void |
stopTemplateVerify()
停止模版比对
Stop template comparison |
int |
Verify(char[] data,
int len)
模版比对指纹,导入模版数据和当前指纹比对
Compare template and fingerprint, import template data and current fingerprint comparison. |
int |
verifyALL()
验证指纹,验证当前指纹是否在指纹模块库里面存在
Verify fingerprint, verify current fingerprint exist in fingerprint library or not. |
public static FingerprintWithFIPS getInstance() throws ConfigurationException
ConfigurationException
- 配置错误异常public boolean init(Context mContext)
public boolean init()
public boolean free()
public int enroll()
public int verifyALL()
public int Verify(char[] data, int len)
data
- 模版数据len
- 数据长度public int deleteAllFingers()
public int getFingersCount()
public int responseCancel()
public byte[] responseContinue()
public int grab()
public int ptCapture()
public byte[] ptConvertTemplateEx(FingerprintWithFIPS.DataFormat jtarget_type, byte[] srcbuf, int jsrclen)
jtarget_type
- 转换后的格式类型srcbuf
- 转换之前的数据jsrclen
- 转换之前的数据长度public FingerprintWithFIPS.FingerprintInfo getPTInfo()
public boolean generateImg(byte[] data, java.lang.String filePath)
data
- 数据filePath
- 生成后图片保存的文件路径public boolean setID(java.lang.String hexID)
public java.lang.String getID()
public void startPtCapture()
setPtCaptureCallBack(PtCaptureCallBack callBack)
方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack)
method to setup received call-back data.public void startGRAB()
setGrabCallBack(GRABCallBack callBack)
方法设置接收回调数据setGrabCallBack(GRABCallBack callBack)
method to setup received call-back data.public void startTemplateVerify(char[] template)
setTemplateVerifyCallBack(TemplateVerifyCallBack callBack)
方法设置接收回调数据setTemplateVerifyCallBack(TemplateVerifyCallBack callBack)
method to setup received call-back data.public void startEnroll()
setEnrollCallBack(EnrollCallBack callBack)
方法设置接收回调数据setEnrollCallBack(EnrollCallBack callBack)
setup receviced call-back data public void startIdentification()
setIdentificationCallBack(IdentificationCallBack callBack)
方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack)
setup receviced call-back data public void stopGRAB()
public void stopEnroll()
public void stopPtCapture()
public void stopTemplateVerify()
public void stopIdentification()
public void setGrabCallBack(FingerprintWithFIPS.GRABCallBack callBack)
callBack
- 回调方法public void setEnrollCallBack(FingerprintWithFIPS.EnrollCallBack callBack)
callBack
- 回调方法public void setPtCaptureCallBack(FingerprintWithFIPS.PtCaptureCallBack callBack)
callBack
- 回调方法public void setIdentificationCallBack(FingerprintWithFIPS.IdentificationCallBack callBack)
callBack
- 回调方法public void setTemplateVerifyCallBack(FingerprintWithFIPS.TemplateVerifyCallBack callBack)
callBack
- 回调方法@Deprecated public byte[] Encryption(byte[] originalBuf, int jdlen)
originalBuf
- 加密之前的数据jdlen
- 数据长度@Deprecated public byte[] Encryption(byte[] originalBuf, int jdlen, java.lang.String key)
originalBuf
- 加密之前的数据jdlen
- 数据长度key
- 秘钥@Deprecated public byte[] decryption(byte[] originalBuf, int jdlen)
originalBuf
- jdlen
- @Deprecated public byte[] decryption(byte[] originalBuf, int jdlen, java.lang.String key)
originalBuf
- 要解密的原始数据jdlen
- 数据长度key
- 秘钥@Deprecated public byte[] decryption(byte[] originalBuf, int jdlen, byte[] key)
originalBuf
- jdlen
- key
- public boolean isPowerOn()