Welcome Guest, Not a member yet? Register   Sign In
how to match finger print values in php?
#1

Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<script>
var count=0;
function RDService()
{

 var url = "http://127.0.0.1:11100";

 var xhr;
 var ua = window.navigator.userAgent;
 var msie = ua.indexOf("MSIE ");

    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
    {
        //IE browser
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    } else {
        //other browser
        xhr = new XMLHttpRequest();
    }
       
    xhr.open('RDSERVICE', url, true);

     xhr.onreadystatechange = function () {
    // if(xhr.readyState == 1 && count == 0){
    //    fakeCall();
    //}
   if (xhr.readyState == 4){
           var status = xhr.status;

           if (status == 200) {

               alert(xhr.responseText);
                
                //Capture();                   //Call Capture() here if FingerPrint Capture is required inside RDService() call          
                console.log(xhr.response);

           } else {
               
                console.log(xhr.response);

           }
            }

       };

     /*setTimeout(function(){
     xhr.send();},1000);*/
     xhr.send();
}


function DeviceInfo()
{

 var url = "http://127.0.0.1:11100/getDeviceInfo";

        var xhr;
            var ua = window.navigator.userAgent;
            var msie = ua.indexOf("MSIE ");

            if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
            {
                //IE browser
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
            } else {
                //other browser
                xhr = new XMLHttpRequest();
            }
       
       //
       xhr.open('DEVICEINFO', url, true);

        xhr.onreadystatechange = function () {
        // if(xhr.readyState == 1 && count == 0){
        //    fakeCall();
        //}
        if (xhr.readyState == 4){
           var status = xhr.status;

           if (status == 200) {

               alert(xhr.responseText);
                           
                console.log(xhr.response);

           } else {
               
                console.log(xhr.response);

           }
            }

       };

     xhr.send();


}

function Capture()
{

 var url = "http://127.0.0.1:11100/capture";

  var PIDOPTS='<PidOptions ver=\"1.0\">'+'<Opts fCount=\"1\" fType=\"0\" iCount=\"\" iType=\"\" pCount=\"\" pType=\"\" format=\"0\" pidVer=\"2.0\" timeout=\"10000\" otp=\"\" wadh=\"\" posh=\"\"/>'+'</PidOptions>';

  /*
  format=\"0\"     --> XML
  format=\"1\"     --> Protobuf
  */
var xhr;
            var ua = window.navigator.userAgent;
            var msie = ua.indexOf("MSIE ");

            if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
            {
                //IE browser
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
            } else {
                //other browser
                xhr = new XMLHttpRequest();
            }
       
       xhr.open('CAPTURE', url, true);
        xhr.setRequestHeader("Content-Type","text/xml");
        xhr.setRequestHeader("Accept","text/xml");

       xhr.onreadystatechange = function () {
        //if(xhr.readyState == 1 && count == 0){
        //    fakeCall();
        //}
        alert(xhr.status);
if (xhr.readyState == 4){
           var status = xhr.status;

           if (status == 200) {
            alert(xhr.responseText);
            //if(xhr.responseText.indexOf("errCode=\"100\"") != -1){
            //alert(xhr.responseText);
                //fakeCall();
                //Capture();
            //}else{
           //    alert(xhr.responseText);
            //    console.log(xhr.response);
            //}
           } else {
               
                console.log(xhr.response);

           }
            }

       };

       xhr.send(PIDOPTS);
    
}

function fakeCall(){
var xhr1;
 var url = 'http://127.0.0.1:11100/getDeviceInfo';

            var ua = window.navigator.userAgent;
            var msie = ua.indexOf("MSIE ");

            if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
            {
                //IE browser
                xhr1 = new ActiveXObject("Microsoft.XMLHTTP");
            } else {
                //other browser
                xhr1 = new XMLHttpRequest();
            }
       
       xhr1.open('DEVICEINFO', url, true);
        xhr1.send();
        count =1;
        xhr1.onreadystatechange = function () {
        if(xhr1.readyState == 4){
            xhr1.abort();
        }
        };
}


</script>
</head>
<body>
<center>
<h2>MORPHO RD TEST_PAGE</h2>
</center>
<div id="FingerPrint" style="width: 50$; height: 100%; float: left;">

<button type="button" onclick="RDService()">RDService</button>
<br/><br/>

<button type="button" onclick="DeviceInfo()">DeviceInfo</button>
<br/><br/>

<button type="button" onclick="Capture()">Capture</button>
<br/><br/>



</body>
</html>
In this code i got one xml data but every time i scanned same finger and i got different xml data. how can i match the fingers authentication?
Reply
#2

(This post was last modified: 08-26-2019, 08:14 AM by InsiteFX. Edit Reason: Added Link )

Should you not be matching it against a database finger print record?

How do I integrate fingerprint recognition in a web application?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(08-26-2019, 08:05 AM)InsiteFX Wrote: Should you not be matching it against a database finger print record?

How do I integrate fingerprint recognition in a web application?

I never find free version to download.I do know how to compare same finger biomatric xml values?
Is there any algorithm to compare bio matric data?
Reply
#4

Found this:

Biometric-Fingerprint-Integration
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB