Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dim conn As SqlConnection = MainForm.con()
Dim cmd As New SqlCommand()
cmd.Connection = MainForm.con()
cmd.CommandText = "select * from fprintt"
Dim rdr As SqlDataReader = cmd.ExecuteReader()
While rdr.Read()
Dim MemStream As IO.MemoryStream
Dim fpBytes As Byte()

fpBytes = rdr("Finger")
MemStream = New IO.MemoryStream(fpBytes)

Dim templa8 As DPFP.Template = New DPFP.Template()
templa8.DeSerialize(MemStream)


Dim FPList As List(Of AppData) = New List(Of AppData)
Dim tmpObj As New AppData
FPList.Add(tmpObj)
Dim printFound As Boolean = False
Dim VerifiedFPData = New AppData
Try
For Each FPData As AppData In FPList
Dim tmplateData As New DPFP.Template
VerifiedFPData = FPData
Dim compareTo As New DPFP.FeatureSet
compareTo = FeatureSet()

Dim ver As New DPFP.Verification.Verification()
Dim res As New DPFP.Verification.Verification.Result()

If Not tmplateData Is Nothing Then
ver.Verify(FeatureSet, tmplateData, res)

If res.Verified Then
'EventHandlerStatus = DPFP.Gui.EventHandlerStatus.Success
printFound = True
VerifiedFPData = FPData
Exit For ' success
End If
End If
Next
Catch ex As Exception
MessageBox.Show("verification error")
End Try
CSS




what is wrong with my code cant compare my sample fingerprint in all the fingerprint stored on my database?

Im using
VB.net
Sql server 2008
4000B Sensor
ZKSoftware
model: URU4S-U1

This is the sample stored in my database as fingerprint:
0x00F88001C82AE3735CC0413709AB717082145592DED883716A5D64C0D0B4382366C2A4FEAA21EABA2D2A954CC352B3B9FA33FDD88D6E9EA5FA9ECCF428270D296F150DA94F89100BD0F350C66E9972EDB05334E4457A6E.....

What I have tried:

I have already tried some sample codes on google
Posted
Updated 5-Oct-17 21:34pm

1 solution

You should talk to the people who created the scanner - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!

Most provide sample code you can use as a starting point.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900