Secugen Hamster pro2o

时间:2015-11-12 05:52:24

标签: javascript asp.net vb.net fingerprint iso-19794

我有 secugen hamster pro20 。我正在使用带有vb.net的asp.net来获取指纹。我正在使用SecuGen FDx Pro SDK Activex控件来获取图像。它工作正常并返回到数据类型SELECT Name ,SchoolOfName.School AS SchoolOfName ,SchoolOfName.Friend ,SchoolOfFriend.School AS SchoolOfFriend FROM ( SELECT f.Name, School, f.Friend FROM Friend AS f INNER JOIN School AS s ON f.Name = s.Name ) AS SchoolOfName INNER JOIN ( SELECT Friend, School FROM Friend AS f INNER JOIN School AS s ON f.Friend = s.Name ) AS SchoolOfFriend ON SchoolOfName.Friend = SchoolOfFriend.Friend AND NOT SchoolOfName.School = SchoolOfFriend.School var javascriptCode="function adding(a,b){ return a+b}" var regex = /function\s*([^\(]*)\(/ var matchResult = javascriptCode.match(regex) var funcName = null; if (matchResult && matchResult.length) { funcName = matchResult[1]; } console.log(funcName); 。我想要ISO 19794-2格式的数据。但是这两个输出并没有提供任何与ISO FOrmat模板LIKE FMR 20相关的东西。

如果有人知道我如何使用Secugen FDx Pro SDK Activex控件获得ISO 19794-2格式模板,那么回复。

1 个答案:

答案 0 :(得分:0)

这是我正在使用的代码示例。

<html>
<head>
<title>ActiveX Example 1.1 of SecuGen FDx Pro SDK </title>
</head>

<script lang=javascript>
<!--
var aaa = 0;
function fnOpenDevice()
{
    for ( i=0; i<3; i++)
    {
        document.frmmain.objFP[i].DeviceID = document.frmmain.inc.value;
        document.frmmain.objFP[i].CodeName = document.frmmain.dev.value;
        //document.frmmain.objFP[i].MinutiaeMode =              document.frmmain.templateFormat.value;
    }

    // template format of objVerify should be the same to those of objFP[]
    //objVerify.MinutiaeMode = document.frmmain.templateFormat.value;
    return;
}

function fnCapture(idx)
{
document.frmmain.objFP[idx].Capture();
var result = document.frmmain.objFP[idx].ErrorCode;
if (result == 0)
{

    var strimg1 = document.frmmain.objFP[idx].MinTextData;
    document.frmmain.min[idx].value = strimg1;
    //var strmin = document.frmmain.objFP[idx].MinTextData;
    //document.frmmain.min[idx].value = strmin;
}
else
    alert('failed - ' + result);

return;
}

function fnRegister()
{
var strmin1 = document.frmmain.min[0].value;
var strmin2 = document.frmmain.min[1].value;

if ( objVerify.RegisterForText(strmin1, strmin2) && objVerify.ErrorCode == 0    )
    alert('success- registered');
else
    alert('failed - ' + objVerify.ErrorCode);

return;

}

function fnVerifyEx()
{   
    var strmin1 = document.frmmain.min[0].value;
    var strmin2 = document.frmmain.min[1].value;
    var strmin3 = document.frmmain.min[2].value;

    if ( objVerify.VerifyExForText(strmin1, strmin2, strmin3) && objVerify.ErrorCode == 0)
        alert('Success - matched');
    else
        alert('Failed - ' + objVerify.ErrorCode);

    return;
}

function fnVerify()
{   
    var strmin1 = document.frmmain.min[0].value;
    var strmin2 = document.frmmain.min[2].value;

    if ( objVerify.VerifyForText(strmin1, strmin2) && objVerify.ErrorCode == 0 )
        alert('Success - matched');
    else
        alert('Failed - ' + objVerify.ErrorCode);

    return;
}

function fnSetimage()
{
    document.frmmain.objFP.ImageTextData = document.frmmain.img1.value;

    return;
}
// -->

</script>

<body>

SecuGen FDx Pro SDK的ActiveX示例1.1    

<OBJECT id=objVerify style="LEFT: 0px; TOP: 0px" height=0 width=0 
    classid="CLSID:8D613732-7D38-4664-A8B7-A24049B96117" 
    name=objVerify VIEWASTEXT>
</OBJECT>

<form name=frmmain>

Device Type :
<select name=dev>
<option value=0>FDP02
<option value=1>FDU02
<option value=2>FDU03
<option value=3>FDU04
<option selected value=4>FDU05

</select>

Instance No. :
<select name=inc>
<option value=-1>-1 
<option value=0>0
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
<option value=6>6
<option value=7>7
<option value=8>8
<option value=9>9
</select>

<p>
Template Format:
<select name=templateFormat>
<option value=256>ANSI 378
<option value=512>SG 400
<option value=768>ISO 19794-2
</select>

<input type=button name=open value='Open Device' OnClick='fnOpenDevice();'>
<p>

<table border=1 cellspacing=0 cellpadding=0>
<caption> Fingerprint Images </caption>
<tr>

                                                                                                                                         

<p>

min1:
   min2:
   min3:    

        
         
          

</BODY>
 </HTML>