How to read multiple barcodes from image using C#?

How to scan, read, decode Unicode text from barcode images for ASP.NET Core web app and Windows application?

Using Free C# Souce Code to read, decode multiple barcodes from image for ASP.NET Web Application & IIS Projects





This page will show you how to scan and read multiple barcodes from a single image file or image stream object using C# code.




Scan, read multiple barcodes from an image file using C#?

One of the most common feature is to scan and find all barcodes with target barcode format from an image file using C#.

string[] datas = BarcodeScanner.Scan("qrcode-barcode.png", BarcodeType.QRCode);

BarcodeDetail[] datasInDetail = BarcodeScanner.ScanInDetails("qrcode-barcode.png", BarcodeType.QRCode);




How to read barcodes with multiple formats from a single image using C#?

Sometimes one image may contain multiple barcodes with different barcode foramts. You can also quickly scan and read all barcodes with specified formats using C# barcode reader library.

  • The C# code below will scan the barcode image and find out all barcodes with barcode type QRCode and barcode type Code128
BarcodeDetail[] datas = BarcodeScanner.ScanInDetails("multiple-barcodes.png",
	new List<BarcodeType> { BarcodeType.QRCode, BarcodeType.Code128 });




How to read barcodes with all supported types from an image using C#?

You can also use one method to read all barcodes with library supported barcode types from a image in C# code. However it will reduce the reading speed, and may cause the error with wrong recognized barcode data.

  • Use property BarcodeType.All to scan and decode all supported barcode formats from an image
BarcodeDetail[] datasInDetail = BarcodeScanner.ScanInDetails("multiple-barcodes.png", BarcodeType.All);
















OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.