IRONSOFTWAREHOME
OCR Progress and Performance Tracking
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();

ocrTesseract.OcrProgress += (_, ocrProgressEventsArgs) =>
{
    Console.WriteLine(ocrProgressEventsArgs.ProgressPercent + "%   " + ocrProgressEventsArgs.Duration.TotalSeconds + "s");
};

using var input = new OcrInput();
input.LoadPdf("large.pdf");

// Progress events will fire during the read operation even if the main thread is blocked.
var result = ocrTesseract.Read(input);
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()

AddHandler ocrTesseract.OcrProgress, Sub(_, ocrProgressEventsArgs)
                                         Console.WriteLine(ocrProgressEventsArgs.ProgressPercent & "%   " & ocrProgressEventsArgs.Duration.TotalSeconds & "s")
                                     End Sub

Using input As New OcrInput()
    input.LoadPdf("large.pdf")

    ' Progress events will fire during the read operation even if the main thread is blocked.
    Dim result = ocrTesseract.Read(input)
End Using
NuGet Download
PM > Install-Package IronOcr
OCR Progress and Performance Tracking

OCR Progress and Performance Tracking

The IronTesseract object has an OcrProgress event that can be used to track OCR progress. We can track progress using the OcrProgressEventArgs object sent to this event after any page of OCR text has finished reading.

This is useful in GUI applications, Web Applications, and CLI alike to keep users informed of how long they may need to wait.

Learn to Track OCR Progress in .NET 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