DigitalPersona SDK

Re: DigitalPersona SDK

Postby vilian » Mon Mar 16, 2020 1:39 pm

No, with Digital Persona I had no success.
We buy another reader (Hamster DX) and everything is fine now.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: DigitalPersona SDK

Postby MOISES » Mon Mar 16, 2020 1:42 pm

Thank you.

And what code did you use?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: DigitalPersona SDK

Postby vilian » Mon Mar 16, 2020 2:14 pm

Here is a little sample:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"
function Start()
local oWnd, oBar,oMenu,oBtn


   DEFINE WINDOW oWnd MENU oMenu
      DEFINE BUTTONBAR oBar OF oWnd 2010

      @ 2,2 BUTTON oBtn PROMPT "Read" OF oWnd SIZE 40,20 ACTION Ler() UPDATE
      @ 4,2 BUTTON oBtn PROMPT "Verify" OF oWnd SIZE 40,20 ACTION Ver() UPDATE
       
   ACTIVATE WINDOW oWnd CENTERED

return nil

FUNCTION Ler()
LOCAl cDedo,cFname,nH,_BT
   
    cDedo := Hamster_PegaDedo()

     // Save cDedo in da folder
      cFname := GetCurDir()+"\D1.TXT"
     nH := FCreate(cFname)
     _nBt := FWrite(nH, cDedo)
     FClose(nH)
     
RETURN nil 

*...*
// Gets the digital
FUNCTION Hamster_PegaDedo()
LOCAL objNBioBSP,objDevice,objExtraction,objMatching,digital

   objNBioBSP := CreateObject('NBioBSPCOM.NBioBSP')
   objDevice := objNBioBSP:Device
   objExtraction := objNBioBSP:Extraction
   objMatching := objNBioBSP:Matching
   objExtraction:WindowStyle := 0
   objDevice:Open(255)
   objExtraction:DefaultTimeout := 5000
   objExtraction:Capture()
   digital:= objExtraction:TextEncodeFIR()
   objDevice:Close(255)
   
RETURN( digital )

// The function bellow is an example of how to teste the digital

FUNCTION Ver()
local aFiles

   //IF cFReader != "Fingkey Hamster - Nitgen"
   //   MsgAlert("Configure a biometria no menu 'Configurações' -> 'Gerais'","Erro de configuração")
   //   RETURN " "
   //ENDIF

      objNBioBSP := CreateObject('NBioBSPCOM.NBioBSP')
      objDevice := objNBioBSP:Device
      objExtraction := objNBioBSP:Extraction
      objMatching := objNBioBSP:Matching

      objExtraction:WindowStyle := 0;

      objDevice:Open(255)
      objExtraction:DefaultTimeout := SECS("02:00:00") * 1000 // Duas horas convertidas para milliseconds
      objExtraction:Capture()
      cTempl := objExtraction:TextEncodeFIR()

      cDedo := ""
      aFiles := Directory( GetCurDir()+"\D*.TXT" )
      IF LEN(aFiles) > 0
         FOR nDedo := 1 TO LEN(aFiles)
            cTxtFile := GetCurDir()+"\"+aFiles[nDedo,1]
            objMatching:VerifyMatch(cTempl, MEMOREAD(cTxtFile))
            if objMatching:ErrorCode <> 0
              *msginfo("
error")
            else
               if objMatching:MatchingResult = 1
                  cDedo := aFiles[nDedo,1]
                  EXIT
               endif
            endif
         NEXT
      ENDIF
      cCodigo := "
0"
      IF .NOT. EMPTY(cDedo)
         ? "
Found",cDedo    
      ELSE
         cCodigo := "
"
      ENDIF
      objDevice:Close(255)

RETURN( cCodigo )
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: DigitalPersona SDK

Postby MOISES » Mon Mar 16, 2020 6:41 pm

Thank you very much for your help.

¿This is your model?
http://www.nitgen.com/eng/product/Hamster1.html
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: DigitalPersona SDK

Postby vilian » Mon Mar 16, 2020 7:01 pm

Yes ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: DigitalPersona SDK

Postby MOISES » Mon Mar 16, 2020 7:02 pm

Thank you very much.

And do they provide a free SDK or you have to purchase it?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: DigitalPersona SDK

Postby vilian » Thu Mar 19, 2020 12:38 am

Yes, Here in Brazil, they provided a free SDK.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: DigitalPersona SDK

Postby MOISES » Thu Mar 19, 2020 12:51 pm

Thank you.

Could you please share the SDK? I would like to review it before purchasing the reader. I had no lack with a DigitalPersona.

All the best
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: DigitalPersona SDK

Postby vilian » Thu Mar 19, 2020 1:00 pm

I'm so sorry, but the SDK has a serial number that identify my copy.
You must ask your SDK to the seller of the reader in your country.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: DigitalPersona SDK

Postby MOISES » Thu Mar 19, 2020 3:22 pm

Sure, of course.

If you don't mind, and as long as it doesn't pose any risk, can you just share the manual please?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: DigitalPersona SDK

Postby vilian » Thu Mar 19, 2020 4:56 pm

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests