DetectAreasMode.DOCUMENT

Contents
[ ]

This algorithm works best with large amounts of structured text such as scanned contracts, book pages, articles, newspapers, and the like. It breaks content into larger blocks, such as paragraphs and columns. These blocks are then analyzed, read and combined into recognition results.

DetectAreasMode.DOCUMENT 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.PHOTO instead.

Example

The following code sample demonstrates how to use this document areas detection algorithm:

// Create instance of OCR API
AsposeOCR api = new AsposeOCR();
// Enable automatic document areas detection
RecognitionSettings recognitionSettings = new RecognitionSettings();
recognitionSettings.setDetectAreasMode(DetectAreasMode.DOCUMENT);
// Extract text from image
RecognitionResult result = api.RecognizePage("source.png", recognitionSettings);
System.out.println("Recognition result:\n" + result.recognitionText + "\n\n");