本文整理汇总了Java中com.digitalpersona.onetouch.processing.DPFPFeatureExtraction类的典型用法代码示例。如果您正苦于以下问题:Java DPFPFeatureExtraction类的具体用法?Java DPFPFeatureExtraction怎么用?Java DPFPFeatureExtraction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DPFPFeatureExtraction类属于com.digitalpersona.onetouch.processing包,在下文中一共展示了DPFPFeatureExtraction类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: extraerCaracteristicas
import com.digitalpersona.onetouch.processing.DPFPFeatureExtraction; //导入依赖的package包/类
public DPFPFeatureSet extraerCaracteristicas(DPFPSample sample, DPFPDataPurpose purpose){
DPFPFeatureExtraction extractor = DPFPGlobal.getFeatureExtractionFactory().createFeatureExtraction();
try {
return extractor.createFeatureSet(sample, purpose);
}catch (DPFPImageQualityException e){
return null;
}
}
示例2: identify
import com.digitalpersona.onetouch.processing.DPFPFeatureExtraction; //导入依赖的package包/类
@Override
public Usuario identify(DPFPSample muestra) throws DPFPImageQualityException {
DPFPFeatureExtraction featureExtractor = DPFPGlobal.getFeatureExtractionFactory().createFeatureExtraction();
DPFPFeatureSet featureSet = featureExtractor.createFeatureSet(muestra, DPFPDataPurpose.DATA_PURPOSE_VERIFICATION);
DPFPVerification matcher = DPFPGlobal.getVerificationFactory().createVerification();
matcher.setFARRequested(DPFPVerification.MEDIUM_SECURITY_FAR);
HuellasCache huellasData = Principal.applicationContext.getBean(HuellasCache.class);
for (Usuario usuario : huellasData.getHuellasBD()) {
TemplateMap templateMap = TemplateMap.deserializar(usuario.getHuella1());
if (templateMap != null) {
for(Template template : templateMap.values()) {
DPFPVerificationResult result = matcher.verify(featureSet, template.getTemplate());
if (result.isVerified()) {
logger.debug("FingerPrint FAR achieved: %g."+
(double) result.getFalseAcceptRate() / DPFPVerification.PROBABILITY_ONE);
return usuario;
}
}
}
}
return null;
}
示例3: extractFeatures
import com.digitalpersona.onetouch.processing.DPFPFeatureExtraction; //导入依赖的package包/类
private DPFPFeatureSet extractFeatures(DPFPSample sample, DPFPDataPurpose purpose) {
DPFPFeatureExtraction extractor = DPFPGlobal.getFeatureExtractionFactory().createFeatureExtraction();
try {
return extractor.createFeatureSet(sample, purpose);
} catch (DPFPImageQualityException e) {
logger.error("Error de calidad de la huella extraída", e);
return null;
}
}