VB.NET barcode reader code sample - ByteScout

VB.NET barcode reader code sample

VB.NET barcode reader code sample shows reading bar code value from JPG image with Barcode Reader SDK.

Visual Basic .NET

Imports System.IO

Imports Bytescout.BarCodeReader

Module <span data-scayt_word="Module1" data-scaytid="1">Module1</span>

   Sub Main()
       Dim pat As String = "....BarcodePhoto.jpg"
       Console.WriteLine("Reading barcode(s) from image {0}", Path.GetFullPath(pat))

       Dim <span data-scayt_word="bc" data-scaytid="2">bc</span> As New Reader()

       bc.TypeToFind = SymbologyFilter.FindAll

       Dim barcodes As <span data-scayt_word="FoundBarcode" data-scaytid="3">FoundBarcode</span>() = bc.ReadFrom(pat)

       Dim i As Integer
       For i = 0 To barcodes.Length - 1
           Console.WriteLine("Found barcode with type '{0}' and value '{1}'", barcodes(i).Type, barcodes(i).Value)
       Next

       Console.WriteLine("Press any key to exit..")
       Console.ReadKey()
   End Sub

End Module



This demo video shows how to read MICR font text from bank checks images and PDF using Barcode Reader SDK:

Tutorials:

prev
next