Avatar billede mpk Nybegynder
07. april 2006 - 11:45 Der er 1 løsning

FingerPrint capturing from DLL-file is not initiating

Hi, I have a problem initiating a fingerprint DLL I am testing.

The program is called Griaule, with the DLL + lib GrFinger

I am starting slowly, so the only thing I want to do is to open a bmp-file that I have in the computer, that contains a fingerprint. Then I would like GrFinger to calculate the template of the finger, that is the "thing" that it can use to recognize the finger if I will open another picture, if of course I save this template somewhere, but that is not the problem yet.

my problem is to get the Capeturing initiated

according to: "GrFinger 4.1 DLL Developer's Manual ENUS.pdf"
that can be downloaded with the free version of GeFinger from:
http://www.griaule.com/page/en-us/downloads

To open a fingerprint, is the same as to capture it from a finger-sensor, so I want to initiate the capturing, but I can't make it work, I either get "access violation", or I can't compile because the parametres of GrCapInitialize() is wrong... how do I create the StatusEventHandler, so the fallowing will work:

retVal= GrCapInitialize (StatusEventHandler);

unfortunaly I am using plain old microsoft visual c++ 6.0, so I can't get the c++.Net examples that they deliver to work.


my code looks like this until now, but it doesn't work

in the h-file:
    // Callbacks
    GRCAP_STATUS_EVENT_PROC *myCallBack;
    GRCAP_FINGER_EVENT_PROC *myFingerCallBack;
    GRCAP_IMAGE_EVENT_PROC *myImageCallBack;


in the cpp-file

    // stuff that needs to be started before the fingerprint recognition can start.

    //Initialize the library
    result = GrInitialize();

    retVal = GrCapInitialize (&CTrainingDlg::StatusEventHandler("File", myCallBack));

    // Start capturing from the plugged sensor.
    startCapVal = GrCapStartCapture("File", myFingerCallBack, myImageCallBack);
   
    // this opens the open file dialog window
    if(m_openFile->DoModal() == IDOK)
    {
        char temp[100];
        strcpy (temp, m_openFile->GetPathName());

        ImageLoaded = GrCapLoadImageFromFile( temp, resolution );
       
        if (ImageLoaded != GR_OK)
        {
            AfxMessageBox("Can't open file");
        }
    }

and I do have the GrFinger.lib included in my project, so I dont think that is the problem, also because result = GrInitialize(); is working fine, and it gives the right result.

I would be very happy to get some help on this problem, thanks.

Best regards
mpk
Avatar billede mpk Nybegynder
29. december 2006 - 17:27 #1
out of date
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester