Link Search Menu Expand Document

Read 50 QRCodes barcodes from picture - C#

BarCode Reader SDK sample in C# demonstrating ‘Read 50 QRCodes barcodes from picture’

using System;
using Bytescout.BarCodeReader;

namespace Read50QRCodesBarcocesFromPicture
    class Program
        static void Main(string[] args)
                // Create and activate Bytescout.BarCodeReader.Reader instance
                using (Reader 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
                    FoundBarcode[] barcodes = reader.ReadFrom("50_QrCodes.png");

                    foreach (FoundBarcode code in barcodes)
                        Console.WriteLine("Found barcode value: '{1}'", code.Type, code.Value);
            catch (Exception ex)

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

Download Source Code (.zip)

Return to the previous page Explore BarCode Reader SDK