mysql中存储指纹数据,如何比较存储在数据库中的指纹上的样本指纹

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

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

解决方案

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值