将Griuale指纹模板转换为数字角色



我使用Griaule SDK存储在SQL Server数据库中的指纹模板,现在我需要迁移到Digital Persona SDK,但是当我尝试阅读模板时,它会引起错误具有不同的格式。我的问题是我如何读取或将模板从Griaule转换为数字角色。

您是对的,您需要使用标准格式为ISO或ANSI。

要从Griaule转换为ISO或ANSI,请参考:http://www.griaulebiometrics.com/en-us/manual/fingerprint-sdk/programpramming-regramperming-repracem-guide/fingerprint-sdk-dll-reference-guide/extraction/extraction-functions/grcovertempions/grcovertemplate

这样的东西(取决于Griaule SDK和语言):

int result;
// set current buffer size for the extract template
_newTpt->_size = GR_MAX_SIZE_TEMPLATE;
result = GrConvertTemplate((char*)_oldTpt, (char*)_newTpt->_tpt, &_newTpt->_size, GR_DEFAULT_CONTEXT, GR_FORMAT_ANSI);
// if error, set template size to 0
if (result < 0){
    // Result < 0 => conversion problem
    _newTpt->_size = 0;
}

模板GROMAT可在此处提供:http://www.griaulebiometrics.com/en-us/manual/manual/fingerprint-sdk/programpramming-programming-repracemming-reference-guide/return-codes-and-cons-and-cons-and-constant/tem-constant/template-formate-format-format--format-format->

必须将此ISO或ANSI模板转换为数字角色格式之后:

Fmd fmd = UareUGlobal.GetImporter().ImportFmd(
                    byteArray, Fid.Format.ANSI_381_2004,
                    Format.DP_REG_FEATURES);

最新更新