DetectAreasMode.UNIVERSAL
This algorithm works best with sparse irregular text, including street photos and screenshots. It detects smaller text areas in an image, such as individual words, phrases, or lines, and then positions them relative to each other in recognition results.
It is optimal for photos (including street photos), screenshots, driver’s licenses, social security cards, government and work IDs, visas, math formulas, code snippets, price tags, and much more. It can also detect small texts such as notes, signatures or stamps. In addition, it is well suited for reading smartphone photos and low-quality scans. In general, it is a versatile option for most images.
However, this algorithm is inefficient when dealing with multi-column layouts and tables. Try DetectAreasMode.MULTICOLUMN or DetectAreasMode.TABLE 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.UNIVERSAL;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
Console.WriteLine(result.RecognitionText);
}