Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
These are codes in verifying a fingerprint, but not using MySQL database. I want it to compare a fingerprint scanned to database. If matched then message.show. These codes are from the SDK of the Biometric Digital Persona (U.are.U 4500).

VB
' NOTE: This form is inherited from the CaptureForm,
' so the VisualStudio Form Designer may not load this properly
' (at least until you build the project).
' If you want to make changes in the form layout - do it in the base CaptureForm.
' All changes in the CaptureForm will be reflected in all derived forms 
' (i.e. in the EnrollmentForm and in the VerificationForm)

Public Class VerificationForm
  Inherits CaptureForm

  Private Template As DPFP.Template
  Private Verificator As DPFP.Verification.Verification

  Public Sub Verify(ByVal template As DPFP.Template)
    Me.Template = template
    ShowDialog()
  End Sub

  Protected Overrides Sub Init()
    MyBase.Init()
    MyBase.Text = "Fingerprint Verification"
    Verificator = New DPFP.Verification.Verification()
    UpdateStatus(0)
  End Sub

  Protected Overrides Sub Process(ByVal Sample As DPFP.Sample)
    MyBase.Process(Sample)

    ' Process the sample and create a feature set for the enrollment purpose.
    Dim features As DPFP.FeatureSet = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Verification)

    ' Check quality of the sample and start verification if it's good
    If Not features Is Nothing Then
      ' Compare the feature set with our template
      Dim result As DPFP.Verification.Verification.Result = New DPFP.Verification.Verification.Result()
      Verificator.Verify(features, Template, result)
      UpdateStatus(result.FARAchieved)
      If result.Verified Then
        MakeReport("The fingerprint was VERIFIED.")
      Else
        MakeReport("The fingerprint was NOT VERIFIED.")
      End If
    End If
  End Sub

  Protected Sub UpdateStatus(ByVal FAR As Integer)
    ' Show "False accept rate" value
    SetStatus(String.Format("False Accept Rate (FAR) = {0}", FAR))
  End Sub

    Private Sub VerificationForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub
    Private Sub InitializeComponent()
        Me.SuspendLayout()
        '
        'VerificationForm
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.ClientSize = New System.Drawing.Size(581, 354)
        Me.Name = "VerificationForm"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
End Class
Posted
Updated 7-Mar-14 7:32am
v2
Comments
Maciej Los 7-Mar-14 13:38pm    
Have a look here: A Framework in C# for Fingerprint Verification[^]. There is no simple way.
phil.o 7-Mar-14 14:46pm    
Hum, so, you want that someone modifies for you the work of someone else than you? I'm afraid that is not how things are working here. Please see CodeProject QA FAQ and What have you tried?
Leetian04 7-Mar-14 15:46pm    
I'm sorry for that. But i dont have any idea bout verifying a fingerprint from MySQL database.

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