OCR with Barcode & QR Reading
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();
ocrTesseract.Configuration.ReadBarCodes = true;
using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\imageWithBarcode.png");
var ocrResult = ocrTesseract.Read(ocrInput);
foreach (var barcode in ocrResult.Barcodes)
{
    Console.WriteLine(barcode.Value);
}
NuGet Download
PM > Install-Package IronOcr
OCR with Barcode & QR Reading

OCR with Barcode & QR Reading

The Iron Tesseract OcrResult object can read barcodes and QR Codes during OCR if you set IronTesseract.Configuration.ReadBarCodes = true;.

This is just one of Iron Software's valuable additions to the vanilla/free Tesseract functionality.

This process effectively allows you to extract and utilize information encoded in QR Codes using the IronOCR library in a C# application.

Discover How to Read Barcodes with IronOCR
View on GitHub

Ready to Get Started?

Nuget Downloads 6,353,232Version:2026.10just released