当前位置: 首页>>代码示例>>Java>>正文


Java DPFPFeatureExtraction类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:JavierMendez,项目名称:CheckMeIn-Checker,代码行数:9,代码来源:FrmLector.java

示例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;
}
 
开发者ID:ZooMMX,项目名称:Omoikane,代码行数:27,代码来源:UserIdentifierOneTouch.java

示例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;
    }
}
 
开发者ID:ZooMMX,项目名称:Omoikane,代码行数:10,代码来源:HuellasOneTouchSDK.java


注:本文中的com.digitalpersona.onetouch.processing.DPFPFeatureExtraction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。