Dear All,
I am using SecuGen Hamster Pro 20 finger print reader, i also downloaded SDK with simple VB.net code. but unfortunately in the code there is no any function to save Finger Print (Template / minutiae) into database table, and search (Template / Minutiae) from database table.
The registration of (Template / Minutiae) code is given below
Private Sub BtnRegister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnRegister.Click
Dim iError As Int32
Dim matched As Boolean
Dim match_score As Int32
Dim secu_level As SGFPMSecurityLevel
matched = False
match_score = 0
secu_level = comboBoxSecuLevel_R.SelectedIndex
iError = m_FPM.MatchTemplate(m_RegMin1, m_RegMin2, secu_level, matched)
iError = m_FPM.GetMatchingScore(m_RegMin1, m_RegMin2, match_score)
If (iError = SGFPMError.ERROR_NONE) Then
If (matched) Then
StatusBar.Text = "Registration Success, Matching Score: " + Convert.ToString(match_score)
Else
StatusBar.Text = "Registration Failed"
End If
Else
DisplayError("GetMatchingScore", iError)
End If
End Sub
Please guide me how to save (Template / Minutiae) into database table.
What I have tried:
Private Sub BtnRegister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnRegister.Click
Dim iError As Int32
Dim matched As Boolean
Dim match_score As Int32
Dim secu_level As SGFPMSecurityLevel
matched = False
match_score = 0
secu_level = comboBoxSecuLevel_R.SelectedIndex
iError = m_FPM.MatchTemplate(m_RegMin1, m_RegMin2, secu_level, matched)
iError = m_FPM.GetMatchingScore(m_RegMin1, m_RegMin2, match_score)
If (iError = SGFPMError.ERROR_NONE) Then
If (matched) Then
StatusBar.Text = "Registration Success, Matching Score: " + Convert.ToString(match_score)
'------------------------------Save Finger Print data into database required here
Else
StatusBar.Text = "Registration Failed"
End If
Else
DisplayError("GetMatchingScore", iError)
End If
End Sub