Perform OCR on selected areas of an image

Perform OCR on selected areas of an image

Aspose.OCR for Java provides the option to specify the areas for recognizing text in pixels. For this, the API provides the overloaded version of the RecognizePage method that takes the image path and the array of Rectangle as parameters. The following code snippet demonstrates recognizing text in specified rectangles.