DEV Community

IronSoftware
IronSoftware

Posted on • Originally published at ironsoftware.com

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay