IRONSOFTWAREHOME
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);
}
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()
ocrTesseract.Configuration.ReadBarCodes = True
Using ocrInput = New OcrInput()
    ocrInput.LoadImage("images\imageWithBarcode.png")
    Dim ocrResult = ocrTesseract.Read(ocrInput)
    For Each barcode In ocrResult.Barcodes
        Console.WriteLine(barcode.Value)
    Next
End Using
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,236,385Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required