DetectAreasMode.MULTICOLUMN
Contents
[
Hide
]
This algorithm is optimized for handling large amounts of text arranged in multiple columns, such as scanned contracts, book pages, articles, and newspapers. Unlike other content detection methods that treat text as a single column, this approach processes each column individually.
*The example article is Copyright © 2016 CLINICS, distributed under the terms of the Creative Commons license.
However, it may not be suitable for analyzing photographs and small amounts of irregular text - try DetectAreasMode.UNIVERSAL instead.
Example
The following code sample demonstrates how to use this content areas detection algorithm:
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");
// Set document areas detection mode
Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings();
recognitionSettings.DetectAreasMode = Aspose.OCR.DetectAreasMode.MULTICOLUMN;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
Console.WriteLine(result.RecognitionText);
}