Lector de huella dijital persona

El campo huella es VarBinary(254)
El problema es ahora al comparar me sale todo falso.
Aqui el codigo.
//********************************************
LPARAMETERS pfeatureset, pstatus
SET STEP ON
ver=CREATEOBJECT('DPFPEngX.DPFPVerification')
oTemplate=CREATEOBJECT('DPFPShrX.DPFPTemplate')
eStatus=1
SELECT empleados 
GO top
Do While !Eof() 
  thisform.text1.Refresh()
   oResult=CREATEOBJECT('DPFPEngX.DPFPVerificationResult')
   oTemplate.Deserialize(empleados.huella)
   oResult=ver.verify(pfeatureset,oTemplate)
   if(oResult.Verified) then 
    Empleado=empleados.numemp
    eStatus=0
   ELSE
   ENDIF
   Skip 
ENDDO
pstatus.Status=eStatus
aqui las instrucciones del SDK..
//**************************************
1. *Create an instance of a DPFPVerification object (VB page 59, C++ page 102).
2. Optionally, set the FARRequested property (VB page 59, C++ page 102). You can use this property to
check or modify the current value of the FAR.
3. Retrieve the serialized fingerprint template data from the fingerprint data storage subsystem.
4. Create a DPFPTemplate object from the serialized data (see Deserializing a Serialized Fingerprint Data
Object on page 33).
5. Perform the system function of fingerprint verification by calling the Verify method and passing the
DPFPTemplate and DPFPFeatureSet objects (VB page 59, C++ page 103).
6. *Receive the DPFPVerificationResult object, which provides the comparison decision of match
or non-match (VB page 62, C++ page 106).
7. *Set the appropriate value for the DPFPEventHandlerStatus object (VB page 66, C++ page 111).
sintaxis
//*****************************************
Verify(
[in] IDispatch* pVerificationFeatureSet,
[in] IDispatch* pFingerprintTemplate,
[out, retval] IDispatch** ppVerificationResult
);
DPFPVerificationResult.Verified=boolean

Añade tu respuesta

Haz clic para o