When this mode is enabled, Aspose.OCR engine finds individual words on images with sparse text. It is very effective when dealing with the following images:

  • Street photos.
  • Road signs.
  • Signboards.
  • Price tags.
  • Food labels, nutritional information, ingredient lists.
  • Menus.
  • Catalogs.

This algorithm automatically activates detection of the coordinates of image regions containing words. There is no need to use DetectRectangles() method.

Text-in-wild structure detection algorithm

However, this algorithm is very inefficient when dealing with large amounts of text, such as pages from books and newspaper articles. Try DetectAreasMode.DOCUMENT instead.


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

AsposeOCR api = new AsposeOCR();
RecognitionSettings recognitionSettings = new RecognitionSettings();
// Load an image
OcrInput images = new OcrInput(InputType.SingleImage);
// Recognize images
ArrayList<RecognitionResult> results = api.Recognize(images, recognitionSettings);
System.out.println("Recognition result:\n" + results[0].recognitionText + "\n\n");


The algorithm only works with Latin letters and numbers. You cannot specify the recognition language and provide whitelisted/blacklisted characters.