DetectAreasMode.MULTICOLUMN

Contents
[ ]

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.

DetectAreasMode.MULTICOLUMN algorithm

*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:

# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Set document areas detection mode
recognitionSettings = RecognitionSettings()
recognitionSettings.detect_areas_mode = DetectAreasMode.MULTICOLUMN
# Recognize the image
result = api.recognize(input, recognitionSettings)
# Print recognition result
print(result[0].recognition_text)
input("Press Enter to continue...")