IronSoftware
  • Products
    for .NET Java
    Create, read, and edit PDFs
    for .NET
    Image to text in 127 languages
    for .NET
    Read and write QR & Barcodes
    for .NET
    Edit Excel & CSV Files.
    No Office Interop required
    for .NET
    Extract structured data from websites
    5 for the Price of 2 All 5 .NET product licenses from $1498 Save 60% with Iron Suite Iron Suites - Donate $50
  • Open Source
    for .NET
    System.Drawing.Common Replacement
  • About Us
  • Contact Us

205 N. Michigan Ave. Chicago, IL 60611, USA +1 (312) 500-3060

Join Iron Slack

  • Home
  • Licensing
  • EULA
  • Support & Update Extensions
  • License Upgrades
  • Start 30-Day Trial
  • Features
  • Get Started
  • Languages
  • Code Examples
  • Tutorials
  • How-Tos
  • Troubleshooting
  • Product Updates
  • API Reference
  • Search
  • Free NuGet Download
IronOCR Library for C# IronOCR Library for C#
  • Home
  • Licensing
    • Licensing
    • EULA
    • Support & Update Extensions
    • License Upgrades
    • Start 30-Day Trial
  • Features
  • Docs
    • Search
    • Get Started
    • Languages
    • Code Examples
    • Tutorials
    • How-Tos
    • Troubleshooting
    • Product Updates
    • API Reference
    • Search
  • Search
  • Free NuGet Download Total downloads: 732,945
Message's icon
IronOCR
Code Examples
  1. IronOCR
  2. Code Examples
  3. Tesseract 5 Engine
IronOCR
Free for development from NuGet

Install with NuGet nuget.org/packages/IronOcr

PM > Install-Package IronOcr

Explore the Docs

  • Get Started
  • Features
  • Languages
  • Code Examples
    • C# Image to Text
    • C# Tesseract OCR
    • OCR Image Filters
    • Compatibility
      • License Keys
      • Setup on Azure
      • Setup on Linux
      • Setup on Docker
      • Use OCR in MAUI
    • OCR Engine
      • Tesseract Configuration Variables
      • Train and Use Custom Font
      • OCR Read a PDF
      • Use Computer Vision to Find Text
    • Contacting Technical Support
      • How to Make an Engineering Support Request for IronOCR
      • Getting the Best Support for IronOCR
    • Common Questions
      • IronOCR - Security CVE
      • Why IronOCR and not Tesseract
    • Troubleshooting Guides
      • Visual C++ Redistributable for Visual Studio
      • Apply a license key in IronOCR
      • Reduce file size of output PDF in IronOcr
      • X and Y coordinates change in OcrResult Class
      • Content Areas & Crop Regions with PDFs
      • Captcha
      • Save image with different image processing applied
      • Quick IronOCR Troubleshooting
      • Identity Documents
      • Debugging Azure Functions Project on Local Machine
    • Language Packs
      • Custom OCR Language Packs
      • Dot Matrix OCR
      • Equations
      • 7 Segment Digital/LCD Displays
      • Financial Language Pack
      • Slashed zeros
      • Arabic Numerals
    • Exception Messages
      • Tesseract Fallback Logic
      • libgdiplus
      • Azure Functions Deployment
      • System.Drawing.Common Alternatives (.NET 7 & Non-Windows)
      • IronOCR Runtimes Folder
      • SEHException with non-AVX CPUs
      • leptonica-1.78.0.dll
      • Failed to locate 'tessdata ra.traineddata even after successfully unpacking the language pack
    • Changelog
  • API Reference
OCR in 1 line of code Tesseract Detailed Configuration 125 International OCR Languages Multiple Languages for 1 Document Using Custom Language Files OCR with Barcode & QR Reading MultithreadedTesseract OCR Fast OCR Configuration Tesseract 5 for .NET
OcrInput Class OCR a Region of an Image Abort Token Timeouts OCR Image Optimization Filters Fix Image Orientation Fixing Low Quality Scans & Images Filter Wizard OCR Image Color Editing OCR Drawing OCR for MultiPage TIFF Files OCR for PDF Stream OCR Tesseract Image DPI
Create Searchable PDFs by OCR Make any PDF have Searchable, Copyable Text Exporting Images of OCR Elements TIFF to Searchable PDF Converter OCR Progress and Performance Tracking OcrResult Class PDF OCR Text Extraction

Tesseract 5 for .NET

using IronOcr;
using System;

var ocrTesseract = new IronTesseract();

// This is done by default and can be omitted:
// ocrTesseract.Configuration.TesseractVersion = TesseractVersion.Tesseract5;

using (var ocrInput = new OcrInput(@"images\image.png"))
{
    var ocrResult = ocrTesseract.Read(ocrInput);
    Console.WriteLine(ocrResult.Text);
}
Imports IronOcr
Imports System

Private ocrTesseract = New IronTesseract()

' This is done by default and can be omitted:
' ocrTesseract.Configuration.TesseractVersion = TesseractVersion.Tesseract5;

Using ocrInput As New OcrInput("images\image.png")
	Dim ocrResult = ocrTesseract.Read(ocrInput)
	Console.WriteLine(ocrResult.Text)
End Using
Install-Package IronOcr

Tesseract 5 for .NET

IronOCR is the only known .NET library for Tesseract 5 OCR. It is also the most advanced Tesseract 5 library known in ANY language at time of writing.

IronOCR Supports Tesseract 5 for .NET Framework, Standard, Core, Xamarin and Mono.

You can download a file project from this link.

Related Docs Links

Ready to get started? Version: 2023.3 just released

Start for Free Total downloads: 732,945
View Licenses >
Try IronOCR for Free
Get Set Up in 5 Minutes
C# NuGet Library for PDF
Install with NuGet
Version: 2023.3
Install-Package IronOcr
nuget.org/packages/IronOcr/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronOCR"
  3. Select the package and install
C# PDF DLL
Download DLL
Version: 2023.3
Download Now
or download Windows Installer here.
  1. Download and unzip IronOCR to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronOCR.dll"
Licenses from $749

Have a question? Get in touch with our development team.

Now that you’ve downloaded IronOCR
Want to deploy IronOCR to a live project for FREE?
Not ready to buy?

Want to deploy IronOCR to a live project for FREE?

What’s included?
30 days of fully-functional product
Test and share in a live environment
No restrictions in production
Get your free 30-day Trial Key instantly.
Thank you.
If you'd like to speak to our licensing team:
Schedule a call
Have a question? Get in touch with our development team.
No credit card or account creation required
Your Trial License Key has been emailed to you.
Not ready to buy?
Thank you.
View your license options:
Thank you.
If you'd like to speak to our licensing team:
View Licensing
Schedule a call
Have a question? Get in touch with our development team.
Have a question? Get in touch with our development team.
Want to deploy IronOCR to a live project for FREE?
Not ready to buy?

Want to deploy IronOCR to a live project for FREE?

What’s included?
30 days of fully-functional product
Test and share in a live environment
No restrictions in production
Get your free 30-day Trial Key instantly.
Thank you.
If you'd like to speak to our licensing team:
Schedule a call
Have a question? Get in touch with our development team.
No credit card or account creation required
Your Trial License Key has been emailed to you.
Not ready to buy?
Download IronOCR free to apply
your Trial Licenses Key
Thank you.
If you'd like to speak to our licensing team:
Install with NuGet View Licensing
Schedule a call
Licenses from $749. Have a question? Get in touch.
Have a question? Get in touch with our development team.
Free 30-Day Trial Key

Fully-functional product, get the key instantly

IronOCR for .NET

Tesseract 5 OCR in the languages you need, We support 127+.

Search

Documentation

  • Code Examples
  • API Reference
  • How-Tos
  • Features
  • Credits
  • Blog
  • Product Brochure

Tutorials

  • Get Started
  • C# Image to Text
  • C# Tesseract OCR
  • OCR Image Filters
  • OCR with Computer Vision

Licensing

  • Buy a License
  • Support Extensions
  • Resellers
  • License Keys
  • EULA

Try IronOCR Free

  • Download on NuGet
  • Download DLL

  • Download Windows Installer

  • 30-Day Trial License

When you need your PDF to look like HTML, fast.

Tesseract 5 OCR in the languages you need, We support 127+.

When you need to read, write, and style, QR & Barcodes, fast.

The Excel API you need, without the Office Interop hassle.

The power you need to scrape & output clean, structured data.

The complete .NET Suite for your office.

  • IRONSUITE
  • |
  • IRONPDF
  • IRONOCR
  • IRONBARCODE
  • IRONXL
  • IRONWEBSCRAPER
IronSoftware
205 N. Michigan Ave. Chicago, IL 60611 USA +1 (312) 500-3060
  • About Us
  • News
  • Careers
  • Contact Us
  • Join Iron Slack

Supporting Teamseas

Copyright © Iron Software LLC 2013-2023

  • Terms
  • Privacy

Thank you!

Your license key has been delivered to the email provided. Contact us

24-Hour Upgrade Offer:

Save 50% on a
Professional Upgrade

Go Professional to cover 10 developers
and unlimited projects.

hours

:

minutes

:

seconds

Upgrade to Professional

Upgrade

Professional

$600 USD

$299 USD


  • 10 developers
  • 10 locations
  • 10 projects
TODAY ONLY
Iron Suite

5 .NET Products for the Price of 2

IronPDF IronOCR IronXL IronBarcode IronWebscraper

Total Suite Value:

$7,192 USD

Upgrade price

TODAY
ONLY

$499 USD

After 24 Hrs

$1,098 USD