Finding paragraph bounding boxes
Contents
[
Hide
]
Aspose.OCR allows you to automatically find the coordinates of image regions containing text paragraphs. This can be useful for highlighting detected areas when previewing an image or extracting individual blocks of text.
To get bounding boxes of all paragraphs of the image, use getTextAreas
method of AsposeOCR
class. Specify AreasType.PARAGRAPHS
as the areaType parameter of the method. isDetectAreas
parameter of the method is ignored.
This method works for images in the following formats: GIF, PNG, JPEG, BMP, WBMP.
Coordinates of each paragraph (top-left corner, width and height) are returned as a list of Rectangle
objects.