aliyuusman4u
New member
Hello,
I am new in this forum and i had from a friend that this group was fantastic , however, i have an issue ,i have develop Biometric application using Securegen SDk, i have done the Enrollment process and i was able to save the template in SQL Server Database. But i have an issue retrieving the template and do the Verification process. please i need help from you. please find bellow my code that does the matching. all i need is how to get the Stored template for all from Database and do the matching. please find my code bellow
NOTE: m_StoredTemplate is the Variable that will hold the binary tempelate that is saved in the database.
Thank you so much
I am new in this forum and i had from a friend that this group was fantastic , however, i have an issue ,i have develop Biometric application using Securegen SDk, i have done the Enrollment process and i was able to save the template in SQL Server Database. But i have an issue retrieving the template and do the Verification process. please i need help from you. please find bellow my code that does the matching. all i need is how to get the Stored template for all from Database and do the matching. please find my code bellow
VB.NET:
If (Me.m_StoredTemplate Is Nothing) Then
Me.StatusBar.Text = "No data to verify"
Return
End If
Dim fingerpos_str() As String = New String() {"Unknown finger", "Right thumb", "Right index finger", "Right middle finger", "Right ring finger", "Right little finger", "Left thumb", "Left index finger", "Left middle finger", "Left ring finger", "Left little finger"}
Dim err As Int32
Dim finger_pos As SGFPMFingerPosition = SGFPMFingerPosition.FINGPOS_UK
Dim finger_found As Boolean = False
Dim sample_info As SGFPMANSITemplateInfo = New SGFPMANSITemplateInfo
err = Me.m_FPM.GetAnsiTemplateInfo(Me.[B][COLOR=#b22222]m_StoredTemplate[/COLOR][/B], sample_info)
Dim i As Integer = 0
Do While (i < sample_info.TotalSamples)
Dim matched As Boolean = False
err = Me.m_FPM.MatchAnsiTemplate(Me.[B][COLOR=#b22222]m_StoredTemplate[/COLOR][/B], i, Me.m_VrfMin, 0, Me.m_SecurityLevel, matched)
If matched Then
finger_found = True
finger_pos = CType(sample_info.SampleInfo(i).FingerNumber, SGFPMFingerPosition)
Exit Do
End If
i = (i + 1)
Loop
If (err = SGFPMError.ERROR_NONE) Then
If finger_found Then
Me.StatusBar.Text = ("The matched data found. Finger position: " + fingerpos_str(CType(finger_pos, Int32)))
Else
Me.StatusBar.Text = "Cannot find a matched data"
End If
NOTE: m_StoredTemplate is the Variable that will hold the binary tempelate that is saved in the database.
Thank you so much