Griaule Biometrics

Home » Forums » FINGERPRINT SDK » Other Programming Languages » Fingerprint SDK 2009 - Javascript / PHP
23 replies [Last post]
vasquezade
Offline
Joined: 2011-01-16
Rate this post:
0
No votes yet
Fingerprint SDK 2009 - Javascript / PHP

Buenas, mi consulta es  por los

http://www.griaulebiometrics.com/page/sites/all/themes/griaule2010/images/subtitles_background.png); background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: transparent; border-bottom-width: 1px; border-bottom-color: #cecece; display: block; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; text-indent: 15px; background-position: 0px 5px; background-repeat: no-repeat no-repeat;"> Ejemplos de como usar los productos

Client-side: Javascript (just for IE)
Server-side: PHP (just for Windows)
ActiveX

Download

http://www.griaulebiometrics.com/page/es/downloads

 

Esto quiere decir que ya es  posible implementar un sistema biométrico de huella es  PHP y con BD por ejemplo: Mysql o Postgresql?

 

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Estimado cliente,

Ese es un ejemplo de como usar nuestra librería en una aplicación web (lenguaje PHP). Con respecto a su duda, si es posible usar dichos gestores de base de datos.

Si tuvieras más dudas me avisas.

 

Jan Beeck

Griaule Support Team

vasquezade
Offline
Joined: 2011-01-16
Rate this post:
0
No votes yet

Cuando mi aplicacion esta en marcha, obtengo este error:

GrFingerX.Initialize is not a function.

Adjunto el GrFingerService.php

<?php
class GrFingerService
{
    // Constants declation
    public $GR_OK = 0;
    public $GR_MATCH = 1;
    public $GR_DEFAULT_CONTEXT = 0;   
    public $GrFingerX;
    public $db;

    // Application startup code
    public function initialize()
    {
        // Initialize GrFingerX Library
        $this->GrFingerX = new COM('GrFingerX.GrFingerXCtrl.1') or die ('No se encontro el objeto.');
        com_load_typelib('{A9995C7C-77BF-4E27-B581-A4B5BBD90E50}');
        // Open sqlite database
        if ($this->db = sqlite_open('GrFingerSample.sqlite', 0666, $sqliteerror))
        {
            $query = sqlite_query($this->db, "SELECT name FROM sqlite_master WHERE type='table' and name='enroll'");
            $rows = sqlite_num_rows($query);
            if ($rows<1)
                sqlite_query($this->db, "CREATE TABLE enroll (id INTEGER PRIMARY KEY, tpt TEXT NOT NULL)");
        }
        else
            return false;
        if($this->GrFingerX->Initialize() != $this->GR_OK)
            return false;
        return true;
    }
   
    // Application finalization code
    public function finalize()
    {
        sqlite_close ($this->db);
        $this->GrFingerX->Finalize();
    }
   
    //Add a fingerprint to database
    public function enroll($tpt)
    {
        // Insert the template into database
        sqlite_query($this->db, "INSERT INTO enroll (tpt) VALUES ('".$tpt."')");
        //return sqlite_last_insert_rowid ($this->db);
        return sqlite_last_insert_rowid ($this->db);
    }
   
    // Verify if two fingerprints match
    public function verify ($id,$rcvtpt)
    {       
        // Find and encode the database template to base 64
        $query = sqlite_query($this->db, "SELECT * FROM enroll WHERE id=".$id);
        $row = sqlite_fetch_array($query, SQLITE_ASSOC);       
        $score = 0;
        // Comparing the given template and the encoded one
        $ret = $this->GrFingerX->VerifyBase64($rcvtpt,$row["tpt"],$score,$this->GR_DEFAULT_CONTEXT);
        if($ret == $this->GR_MATCH)
            return $row["id"];
        else
            return $ret;
    }

    // Identify a fingerprint
    public function identify ($rcvtpt)
    {
        // Starting identification process
        $ret = $this->GrFingerX->IdentifyPrepareBase64($rcvtpt, $this->GR_DEFAULT_CONTEXT);
        if($ret!=$this->GR_OK)
            return $ret;
        // Getting enrolled templates from database
        $query = sqlite_query($this->db, "SELECT * FROM enroll");       
        $score = 0;
        while ($row = sqlite_fetch_array($query, SQLITE_ASSOC))
        {           
            // Comparing the current template and the given one
            $ret = $this->GrFingerX->IdentifyBase64($row["tpt"],$score,$this->GR_DEFAULT_CONTEXT);
            if( $ret == $this->GR_MATCH)
                return $row["id"];               
        }
        return 0;
    }
}
?>

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Estimado cliente,

Verifique el archivo GrFinger que se encuentra en la carpeta client-side:

//Must change to the path that contains the files "enroll.php", "identify.php" and "verify.php"

var url_server="http://192.168.0.100/GrFingerService/"

 

Jan Beeck

Griaule Support Team

 

 

 

 

 

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Estimado cliente,

En la siguiente thread esta la solución

http://www.griaulebiometrics.com/page/en-us/forum/use-phpmysql-page-scan-fingerprints

 

Jan Beeck

Griaule Support Team

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

Hallo everyone .am a configuring  an sdk here do we have procedures on how to configure it in php/mysql

 

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

hell o everyone  i have changed my path to point to the php files as follows :var url_server="http://localhost/grFinger/jp/serverside/"

 

however when i load i refresh my url :http://localhost/grFinger/jp/serverside/enroll.php it shows a blank page

m.svol
Offline
Joined: 2010-09-02
Rate this post:
0
No votes yet

Dear customer,

Your doubt was answered in this topic: http://www.griaulebiometrics.com/page/en-us/forum/use-phpmysql-page-scan-fingerprints#comment-4952

Best regards,

 

--
Matheus Smythe Svolenski
Griaule Biometrics Support Team

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

Good day I have a question I do not get the image nor do I have connection to thedatabase I have the local server WampServer I could collaborate in its configuration for the proper functioning of the application

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

not have a tutorial or video on this internet explorer settings.
and how it should work properly because I still have not seen a forum that someone willserve this application

Please await your prompt response and assistance

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer, 

The Fingerprint SDK 2009 must be installed on your PC in order to work the PHP sample.

If you have more questions, let us know.

 

 

Jan Beeck

Griaule Support Team

 

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

yeah sure I have it installed and it works if I open the file but not
my localhost but the problem does not create the database do not see where is the
nor connection I get the impression that this problem I have
many people, please await your prompt response ..

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer,

You did not find your solution on this thread?, why do you state that many people have the same issue as you?, please could you describe properly your issue.

 

Thanks.

Jan Beeck

Griaule Support Team

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

look at the problem is next on the localhost not my pc to enter
http://localhost/Javascript-PHP/client-side/enroll.htm not recognize me
turns the device footprint but I do not generate anything, much less enter
sqliteq values ​​you need to see so please help me ...

otherwise upgrade to Internet Explorer 9 and even more problems emerging

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

and also fix the GrFinger.js and place url_server var = "http://localhost/Javascript-PHP/client-side/" all the talk before and I did and nothing is working 100%

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer,

These are the prerequisites:

1. The Fingerprint SDK 2009 must be installed.
2. An Apache server must be running.
3. IE installed and configured to allow ActiveX.

 

 

Jan Beeck

Griaule Support Team

 

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

if I have all that I recognized the track but I did not register with the database and I do not work on my web server as I had written before

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Issue escalated due to problems with communication (idiom issue), an email has been sent to the client.

 

Jan Beeck

Griaule Support Team

zayro
Offline
Joined: 2011-04-14
Rate this post:
0
No votes yet

I await your prompt replies ok

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

Hey team.

i have all these installed.

1. The Fingerprint SDK 2009 must be installed.
2. An Apache server must be running.
3. IE installed and configured to allow ActiveX.

i have configured the path to point to php scripts.

i place my finger on the finger scan i can see the image of my finger on the enroll screen, but this template is not saved in  an emulated database ie txt file.

what might have caused all this

 

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

Hey team.

i have all these installed.

1. The Fingerprint SDK 2009 must be installed.
2. An Apache server must be running.
3. IE installed and configured to allow ActiveX.

i have configured the path to point to php scripts.

i place my finger on the finger scan i can see the image of my finger on the enroll screen, but this template is not saved in  an emulated database ie txt file.

what might have caused all this

if i can get this sample template saved then i can be able to upload the image as a blob

davi.st1
Offline
Joined: 2010-08-26
Rate this post:
0
No votes yet

Dear customer,

 

You probably are not saving correctly the template or extracting it.

Try to check if the server is receiving the template.

Because, if you can see the image, you just need to extract it, send it to the server and store.

 

Best regards,

 

Davi Stuart Zilli

Griaule Support Team

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

sir when i go to the inside of my server folder i cannot see it.but when i place my finger i can see the image and i can see being told "sufficient enrollment".

what i dont know is how to  extract it .

please guide me on how to extract it.

wambugu
Offline
Joined: 2011-04-18
Rate this post:
0
No votes yet

Hey everyone i have been working on this finger scan fr 10 days. i have only changed the path to point the PHP scripts , no more changes i have made in the code.

i have tried even to ue the .hta extension instead of .html extension; as i succedded in noticing the image of my finger  every time i palce it in the scanner i cannot find the extracted sample  in a .txtfile.

 

am running wamp with php version 5.3 and am using a normal laptop,and i have finger sdk 2009 installed

anyone there with somehelp.