Finding word bounding boxes
Contents
[
Hide
]
Aspose.OCR allows you to automatically find the coordinates of image rectangles containing individual words in text. This can be useful for highlighting detected words when previewing an image.
To get bounding boxes of all words of the image, use getTextAreas
method of AsposeOCR
class. Specify AreasType.WORDS
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 word (top-left corner, width and height) are returned as a list of Rectangle
objects.