IRONSOFTWAREHOME
Multithreaded Tesseract OCR
using IronOcr;

var ocrTesseract = new IronTesseract();

// Optional: cap how many pages are OCR'd at once to bound peak memory.
// Defaults to Environment.ProcessorCount. Set MultiThreaded = false to read sequentially.
ocrTesseract.MaxDegreeOfParallelism = 4;

using var ocrInput = new OcrInput();
ocrInput.LoadPdf("scan.pdf");

// Image processing is automatically multi-threaded
ocrInput.Deskew();

// OCR reading is automatically multi-threaded too
var ocrResult = ocrTesseract.Read(ocrInput);
NuGet Download
PM > Install-Package IronOcr
Multithreaded Tesseract OCR

Multithreaded Tesseract OCR

All IronOCR image processing and OCR reading operations are multithreaded by default, so no special API is needed to get started. The legacy ReadMultithreaded method is no longer required.

IronTesseract will automatically attempt to use all threads available on all cores and will consider responsiveness on the main / GUI thread elegantly.

When you need to bound that parallelism, two properties on IronTesseract control it. MaxDegreeOfParallelism caps how many pages are OCR'd concurrently within a single Read call - each concurrent page runs its own native Tesseract engine, so lowering the value lowers peak memory. Setting MultiThreaded to false reads pages sequentially for the lowest and most predictable memory footprint, and takes precedence over MaxDegreeOfParallelism.

Learn Async OCR Techniques 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