Getting recognition results as text

Contents
[ ]

Recognition results in plain text with line breaks can be obtained from the RecognitionText property of RecognitionResult object or returned from RecognizeImage method.

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add an image to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source.png");
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Show recognition result
Console.WriteLine(result[0].RecognitionText);

You can also extract text blocks from specific image areas or get individual lines.