public class FingerprintWithMorpho extends java.lang.Object implements IFingerprintWithMorpho
| Modifier and Type | Class and Description |
|---|---|
static interface |
FingerprintWithMorpho.EnrollCallBack
采集指纹回调接口
acquire fingerprint call-back contact |
static interface |
FingerprintWithMorpho.GrabCallBack |
static interface |
FingerprintWithMorpho.IdentificationCallBack
验证指纹的回调接口
call-back contact for fingerprint verification |
static interface |
FingerprintWithMorpho.PtCaptureCallBack
设置获取指纹模版回调接口
setup fingerprint template acquire call-back contact |
static interface |
FingerprintWithMorpho.TemplateVerifyCallBack |
| Modifier and Type | Method and Description |
|---|---|
boolean |
free()
释放指纹模块
free fingerprint module |
static FingerprintWithMorpho |
getInstance()
获取指纹模块操作实例
acquire fingerprint module operation eample |
java.lang.String |
getMorphoDescriptor() |
java.lang.String |
getMorphoPIDSN()
获取指纹版本
acquire fingerprint version |
int |
getMorphoSecurityLevel() |
static java.lang.String |
getStatusMsg(int status) |
boolean |
init()
初始化指纹模块
Initialize fingerprint module |
boolean |
isPowerOn() |
boolean |
morphoEraseAllBase()
删除所有指纹信息
delete all fingerprint infor |
void |
setGrabCallBack(FingerprintWithMorpho.GrabCallBack callBack) |
void |
setIdentificationCallBack(FingerprintWithMorpho.IdentificationCallBack callBack)
设置指纹验证回调接口
setup fingerprint verification call-back contact |
boolean |
setMorphoLoadKs(byte[] keybuf)
设置加密数据秘钥
Setup encypted data key |
boolean |
setMorphoSecurityLevel(int level) |
void |
setPtCaptureCallBack(FingerprintWithMorpho.PtCaptureCallBack callBack)
设置获取指纹模版回调接口
Setup call-back contact for acquiring fingerprint template |
void |
setPtEnrollCallBack(FingerprintWithMorpho.EnrollCallBack callBack)
设置采集指纹回调接口
setup fingerprint acquire call-back contact |
void |
setTemplateVerifyCallBack(FingerprintWithMorpho.TemplateVerifyCallBack callBack)
设置模版比对回调接口
Setup call-back contact for template comparison |
boolean |
setTimeOut(int timeOut)
设置指纹模块超时时间
|
void |
startEnroll(int id,
java.lang.String name)
开始采集指纹,注意:请调用
Start acquire fingerprint, attention: call out setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back data |
void |
startEnroll(int id,
java.lang.String name,
java.lang.String imgDirectory,
java.lang.String imgName)
开始采集指纹,注意:请调用
Start acquire fingerprint, attention: call out setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back data |
void |
startGrab(java.lang.String imgDirectory,
java.lang.String imgName) |
void |
startIdentification()
开始验证指纹,注意:请调用
Start verify fingerprint, attention: call-out setIdentificationCallBack(IdentificationCallBack callBack) 方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack) setup receive call-back data |
void |
startPtCapture(boolean encryptflag)
开始获取指纹模版,注意:请调用
Start acquire fingerprint template, attention: call out setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back data |
void |
startPtCapturePKComp(boolean encryptflag)
开始获取指纹模版,注意:请调用
Start acquire fingerprint template, attention: call out setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back data |
void |
startTemplateVerify(byte[] template,
int type)
开始模版验证,注意:请调用
start template verification, attention: call out setTemplateVerifyCallBack(TemplateVerifyCallBack callBack) 方法设置接收回调数据setTemplateVerifyCallBack(TemplateVerifyCallBack callBack)method to setup received call-back data. |
boolean |
stopEnroll()
Deprecated.
|
boolean |
stopIdentification()
Deprecated.
|
boolean |
stopPtCapture()
Deprecated.
|
public static FingerprintWithMorpho getInstance() throws ConfigurationException
ConfigurationException - 配置错误异常public void setGrabCallBack(FingerprintWithMorpho.GrabCallBack callBack)
setGrabCallBack in interface IFingerprintWithMorphopublic void startGrab(java.lang.String imgDirectory,
java.lang.String imgName)
startGrab in interface IFingerprintWithMorphopublic void setPtCaptureCallBack(FingerprintWithMorpho.PtCaptureCallBack callBack)
setPtCaptureCallBack in interface IFingerprintWithMorphocallBack - 回调方法public void setTemplateVerifyCallBack(FingerprintWithMorpho.TemplateVerifyCallBack callBack)
setTemplateVerifyCallBack in interface IFingerprintWithMorphocallBack - 回调方法public void setPtEnrollCallBack(FingerprintWithMorpho.EnrollCallBack callBack)
setPtEnrollCallBack in interface IFingerprintWithMorphocallBack - 回调方法public void setIdentificationCallBack(FingerprintWithMorpho.IdentificationCallBack callBack)
setIdentificationCallBack in interface IFingerprintWithMorphocallBack - 回调方法public boolean isPowerOn()
isPowerOn in interface IFingerprintWithMorphopublic boolean init()
init in interface IFingerprintWithMorphopublic boolean free()
free in interface IFingerprintWithMorpho@Deprecated public boolean stopPtCapture()
stopPtCapture in interface IFingerprintWithMorpho@Deprecated public boolean stopEnroll()
stopEnroll in interface IFingerprintWithMorpho@Deprecated public boolean stopIdentification()
stopIdentification in interface IFingerprintWithMorphopublic void startPtCapture(boolean encryptflag)
setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back datastartPtCapture in interface IFingerprintWithMorphopublic void startPtCapturePKComp(boolean encryptflag)
setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back datastartPtCapturePKComp in interface IFingerprintWithMorphopublic void startTemplateVerify(byte[] template,
int type)
setTemplateVerifyCallBack(TemplateVerifyCallBack callBack) 方法设置接收回调数据setTemplateVerifyCallBack(TemplateVerifyCallBack callBack)method to setup received call-back data.startTemplateVerify in interface IFingerprintWithMorphotemplate - 模板数据type - 0:PKComppublic void startEnroll(int id,
java.lang.String name)
setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back datastartEnroll in interface IFingerprintWithMorphopublic void startEnroll(int id,
java.lang.String name,
java.lang.String imgDirectory,
java.lang.String imgName)
throws java.io.IOException
setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back datastartEnroll in interface IFingerprintWithMorphoid - 指纹idname - 姓名imgDirectory - 图片目录imgName - 图片名称只支持.wsqjava.io.IOExceptionpublic void startIdentification()
setIdentificationCallBack(IdentificationCallBack callBack) 方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack) setup receive call-back datastartIdentification in interface IFingerprintWithMorphopublic java.lang.String getMorphoDescriptor()
getMorphoDescriptor in interface IFingerprintWithMorphopublic boolean setMorphoLoadKs(byte[] keybuf)
setMorphoLoadKs in interface IFingerprintWithMorphokeybuf - 秘钥public java.lang.String getMorphoPIDSN()
getMorphoPIDSN in interface IFingerprintWithMorphopublic boolean morphoEraseAllBase()
morphoEraseAllBase in interface IFingerprintWithMorphopublic int getMorphoSecurityLevel()
getMorphoSecurityLevel in interface IFingerprintWithMorphopublic boolean setMorphoSecurityLevel(int level)
setMorphoSecurityLevel in interface IFingerprintWithMorphopublic boolean setTimeOut(int timeOut)
setTimeOut in interface IFingerprintWithMorphopublic static java.lang.String getStatusMsg(int status)