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
Private ocrTesseract = New IronTesseract()
Private ocrTesseract.OcrProgress += Sub(underscore, ocrProgressEventsArgs)
Console.WriteLine(ocrProgressEventsArgs.ProgressPercent & "% " & ocrProgressEventsArgs.Duration.TotalSeconds & "s")
End Sub
Private input = 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)