Read Scanned Document

This code example demonstrates how to use the IronTesseract OCR (Optical Character Recognition) engine to extract text from an image.

First, an instance of the IronTesseract OCR engine is created. Next, an OcrInput object is initialized to load the image (in this case, "potter.tiff") that contains the text to be recognized. The OCR engine performs the recognition process using the ReadDocument method, which processes the loaded image and returns the recognized text as an OcrResult object. Finally, the recognized text is printed to the console using Console.WriteLine(result.Text). This process allows for the extraction of readable text from image files in a programmatic way, using OCR technology.