com.pax.dal
Interface IFingerprintReader
-
public interface IFingerprintReader
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceIFingerprintReader.FingerprintListener
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description voidclose()关闭指纹采集模块Close fingerprint acquisition moduleintcompareFeature(int securityLevel, byte[] feature1, byte[] feature2)指纹特征对比。特征格式需要相同。Compare fingerprint feature.booleancontrolPower(boolean on)指纹上下电接口Fingerprint power-on and power-off interfacevoidextractFeature(int format, IFingerprintReader.FingerprintListener listener)提取指纹特征。Fingerprint extraction.voidextractImage(int format, int compress, IFingerprintReader.FingerprintListener listener)提取指纹图像。Extract fingerprint image.voidopen()打开指纹采集模块Open fingerprint acquisition modulevoidsetImageSize(int width, int height)设置图像大小。需在后调用,在调用后会重置。Set the image size.voidsetTimeout(int timeout)设置获取指纹超时时间.如果设置了IFingerprintReader.FingerprintListener,超时后IFingerprintReader.FingerprintListener.onError(int)将会被调用Set the time-out for getting fingerprints.voidstart(IFingerprintReader.FingerprintListener listener)Deprecated.开始获取指纹Start getting fingerprintsvoidstop()停止获取指纹Stop getting fingerprints
-
-
-
Method Detail
-
open
void open() throws FingerprintDevException
打开指纹采集模块Open fingerprint acquisition module- Throws:
FingerprintDevException
-
start
void start(IFingerprintReader.FingerprintListener listener) throws FingerprintDevException
Deprecated.开始获取指纹Start getting fingerprints- Parameters:
listener-- Throws:
FingerprintDevException
-
stop
void stop() throws FingerprintDevException
停止获取指纹Stop getting fingerprints- Throws:
FingerprintDevException
-
close
void close() throws FingerprintDevException
关闭指纹采集模块Close fingerprint acquisition module- Throws:
FingerprintDevException
-
setTimeout
void setTimeout(int timeout) throws FingerprintDevException
设置获取指纹超时时间.如果设置了IFingerprintReader.FingerprintListener,超时后IFingerprintReader.FingerprintListener.onError(int)将会被调用Set the time-out for getting fingerprints. IfIFingerprintReader.FingerprintListeneris set, after the time-out(int)will be invoked.- Parameters:
timeout-超时timeout- Throws:
FingerprintDevException
-
extractFeature
void extractFeature(int format, IFingerprintReader.FingerprintListener listener) throws FingerprintDevException
提取指纹特征。Fingerprint extraction.- Parameters:
format-指纹特征格式。- 1:FEATURE_ANSI_INCITS_378_2004
- 2:FEATURE_ISO_IEC_19794_2_2005
- 3:FEATURE_ARATEK_BIONE
Fingerprint feature format.- 1:FEATURE_ANSI_INCITS_378_2004
- 2:FEATURE_ISO_IEC_19794_2_2005
- 3:FEATURE_ARATEK_BIONE
listener-IFingerprintReader.FingerprintListener- Throws:
FingerprintDevException- Since:
- V3.09.00
-
extractImage
void extractImage(int format, int compress, IFingerprintReader.FingerprintListener listener) throws FingerprintDevException
提取指纹图像。Extract fingerprint image.- Parameters:
format-指纹图像格式。- 1:IMAGE_TYPE_RAW
- 2:IMAGE_TYPE_BMP
- 3:IMAGE_TYPEWSQ
- 4:IMAGE_ANSI_INCITS_381_2004
- 5:IMAGE_ISO_IEC_19794_4_2005
Fingerprint image format.- 1:IMAGE_TYPE_RAW
- 2:IMAGE_TYPE_BMP
- 3:IMAGE_TYPEWSQ
- 4:IMAGE_ANSI_INCITS_381_2004
- 5:IMAGE_ISO_IEC_19794_4_2005
compress-图像压缩率。当format=IMAGE_TYPEWSQ有效,范围为5~15(值越大,压缩率越高)。Image compression. When format=IMAGE_TYPEWSQ is valid, the range is 5~15 (the larger the value, the higher the compression ratio).listener-IFingerprintReader.FingerprintListener- Throws:
FingerprintDevException- Since:
- V3.09.00
-
compareFeature
int compareFeature(int securityLevel, byte[] feature1, byte[] feature2) throws FingerprintDevException
指纹特征对比。特征格式需要相同。Compare fingerprint feature. The feature format needs to be the same.- Parameters:
securityLevel-安全等级。范围为1~5(值越大,安全性越好。推荐4)。Safety level. The range is 1~5 (the larger the value, the better the safety.Recommendation 4).feature1-指纹特征。Finger feature.feature2-指纹特征。Finger feature.- Returns:
- 相似度。负值表示对比失败。正数为相似度,范围是1-100。Similarity. A negative value indicates that the comparison failed. A positive value is the similarity, and the range is 1-100.
- Throws:
FingerprintDevException- Since:
- V3.09.00
-
setImageSize
void setImageSize(int width, int height) throws FingerprintDevException
设置图像大小。需在后调用,在调用后会重置。Set the image size. It needs to be called after and reset after is called.- Parameters:
width-宽。Width.height-高Height.- Throws:
FingerprintDevException- Since:
- V3.17.00
-
controlPower
boolean controlPower(boolean on) throws FingerprintDevException
指纹上下电接口Fingerprint power-on and power-off interface- Parameters:
on-true 上电,false 下电true Powers on, false powers off- Returns:
- 成功或失败Success or failure
- Throws:
FingerprintDevException- Since:
- V4.08.00
-
-