QR CODE SCANNER (Emgu CV ) VB.NET
QR CODE SCANNER VB.NET
Emgu CV Download : http://www.emgu.com/wiki/index.php/Download_And_Installation
Imports Emgu.CV
Imports Emgu.CV.UI
Imports Emgu.CV.Structure
Imports MessagingToolkit.QRCode.Codec
Public Class Form1
Dim Reader As QRCodeDecoder
Dim Cap As New Capture
Dim hash As String
Dim access As Boolean = False
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Reader = New QRCodeDecoder
PictureBox1.Image = Cap.QueryFrame.ToBitmap()
Try
If access = True Then
hash = Reader.decode(New Data.QRCodeBitmapImage(PictureBox1.Image))
access = False
If RichTextBox1.Text = hash Then
MsgBox("ACCESS GRANTED!")
Else
MsgBox("ACCESS DENIED!")
End If
End If
Catch ex As Exception
access = False
MsgBox("INVALID")
End Try
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
access = True
Catch ex As Exception
End Try
End Sub
End Class

Comments
Post a Comment