仅需要一些有关如何从mySQL数据库上的已存储字节模板中验证指纹的帮助,我已经在数据库中存储了BYTES模板,但是我无法进行验证。
表名是finger_template,列是byte_template
当我尝试使用ode时,没有错误显示,但是也没有任何迹象表明我们能够匹配模板。
专用Sub AxZKFPEngX1_OnCapture(ByVal发送者作为对象,ByVal e作为AxZKFPEngXControl.IZKFPEngXEvents_OnCaptureEvent)处理AxZKFPEngX1.OnCapture
VerTemplate = e.aTemplate
Dim vartemplat As Byte() = DirectCast(VerTemplate, Byte())
Dim Template As String = AxZKFPEngX1.GetTemplateAsString()
If e.actionResult AndAlso VerifyCheck = True Then
VerifyCheck = False
Dim check As Boolean = False
Dim temp As String
AxZKFPEngX1.OneToOneThreshold = 50
AxZKFPEngX1.Threshold = 50
temp = AxZKFPEngX1.GetTemplateAsString()
Dim strSQL As String = "Select * from finger_template"
Dim oDa As New MySqlDataAdapter(strSQL, oConn)
Dim dt As New DataTable
Dim dr As DataRow
Try
oDa.Fill(dt)
For Each dr In dt.Rows
Lblverify.ForeColor = Color.Red
Lblverify.Visible = True
dsl_select = New DataSet()
Dim fingerTemp As Object = dr.ItemArray.GetValue(0)
If AxZKFPEngX1.VerFinger(fingerTemp, VerTemplate, False, check) = True Then
MessageBox.Show("Sucess!!")
Else
MessageBox.Show("Fail!!")
End If
'End If
Next
Catch ex As Exception
End Try
End If
End Sub