Contents[ Hide ]
The combination of DetectAreasMode.DOCUMENT and DetectAreasMode.PHOTO, which can extract as much text from an image as possible. The OCR engine detects large blocks of text (such as paragraphs and columns), while the remaining content is analyzed by DetectAreasMode.PHOTO algorithm.
This allows you to handle even the most complex cases like posters, billboards, or random photos. However, it can take a little longer and may be less efficient than the specialized algorithms. Try one of the dedicated area detection methods if you are sure of the content type.
The following code sample demonstrates how to use this document areas detection algorithm:
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr(); Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings(); recognitionSettings.DetectAreasMode = Aspose.OCR.DetectAreasMode.COMBINE; // Recognize image Aspose.OCR.RecognitionResult result = recognitionEngine.RecognizeImage("source.png", recognitionSettings); Console.WriteLine(result.RecognitionText);