We help IT Professionals succeed at work.
Get Started

how to convert finger print image to a unique number / id .

akhil raj
akhil raj asked
on
493 Views
Last Modified: 2017-11-30
Private Sub bscan_Click(sender As Object, e As EventArgs) Handles bscan.Click
        Dim img_wdth As Int32 = 260
        Dim img_hght As Int32 = 300
        Dim img_dpi As Int32 = 500
        Dim ierror As Int32
        Dim fp_img() As Byte
        Dim m_vrfmin() As Byte
        Dim timeout As Int32 = 10000
        Dim quality As Int32 = 80

        Dim m_fpm As SGFingerPrintManager    'm_fpm is member variable of sgfingerprintmanager


        Dim device_name As SGFPMDeviceName
        Dim port_addr As Int32
        m_fpm = New SGFingerPrintManager()
        device_name = SGFPMDeviceName.DEV_FDU03
        port_addr = SGFPMPortAddr.AUTO_DETECT
        ierror = m_fpm.Init(SGFPMDeviceName.DEV_FDU03)
        ierror = m_fpm.OpenDevice(port_addr)
        ReDim fp_img(img_wdth * img_hght)
        ReDim m_vrfmin(img_wdth * img_hght)
        ierror = m_fpm.GetImageEx(fp_img, timeout, thumbimpression.Handle.ToInt32(), quality)
        If (ierror = SGFPMError.ERROR_NONE) Then
            DrawImage(fp_img, thumbimpression)
        End If

    End Sub

    Private Sub DrawImage(ByVal imgData() As Byte, ByVal picBox As PictureBox)
        Dim colorval As Int32
        Dim bmp As Bitmap
        Dim i, j As Int32
        Dim img_wdth As Int32 = 260
        Dim img_hght As Int32 = 300
        Dim img_dpi As Int32 = 500
        bmp = New Bitmap(img_wdth, img_hght)
        picBox.Image = bmp

        For i = 0 To bmp.Width - 1
            For j = 0 To bmp.Height - 1
                colorval = imgData((j * img_wdth) + i)
                bmp.SetPixel(i, j, Color.FromArgb(colorval, colorval, colorval))
            Next j
        Next i

        picBox.Refresh()
    End Sub
the above code scans the finger placed on the secugenfinger print device and draws an bitmap image on the picture box . how can i convert that bitmap image of the fingerprint to a number ?
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE