DEV Community

IronSoftware
IronSoftware

Posted on • Originally published at ironsoftware.com

OCR for MultiPage TIFF Files

The OcrInput and automatically work with an input TIFF files that conventional Tesseract can not read.

Every frame of your TIFFs will be imported, creating a multi-page IronOcr.OcrResult document.

C#:

using IronOcr;

var Ocr = new IronTesseract();

using (var Input = new OcrInput())
{
    Input.AddMultiFrameTiff("images/multiframe.tiff");

    var Result = Ocr.Read(Input);
    Console.WriteLine(Result.Text);
}z
Enter fullscreen mode Exit fullscreen mode

VB:

Imports IronOcr

Private Ocr = New IronTesseract()

Using Input = New OcrInput()
    Input.AddMultiFrameTiff("images/multiframe.tiff")

    Dim Result = Ocr.Read(Input)
    Console.WriteLine(Result.Text)
End Using
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'z
Enter fullscreen mode Exit fullscreen mode

Top comments (0)