Link Search Menu Expand Document

Decode QR Code With JSON - VB.NET

BarCode Reader SDK sample in VB.NET demonstrating ‘Decode QR Code With JSON’

Imports Bytescout.BarCodeReader

Module Program

    Sub Main()


            ' Create and activate Bytescout.BarCodeReader.Reader instance
            Using reader As Reader = New Reader("demo", "demo")

                ' Set barcode type to find
                reader.BarcodeTypesToFind.QRCode = True

                ' -----------------------------------------------------------------------
                ' NOTE: We can read barcodes from specific page to increase performance .
                ' For sample please refer to "Decoding barcodes from PDF by pages" program.
                ' ----------------------------------------------------------------------- 

                ' Read barcodes
                Dim barcodes() As FoundBarcode = reader.ReadFrom("qr_code_with_json.png")

                For Each code As FoundBarcode In barcodes
                    Console.WriteLine("Found barcode with type '{0}' and value '{1}'", code.Type, code.Value)

            End Using

        Catch ex As Exception
        End Try

        Console.WriteLine("Press any key to exit...")

    End Sub

End Module

Download Source Code (.zip)

Return to the previous page Explore BarCode Reader SDK

Copyright © 2016 - 2023 ByteScout