Replies: 1 comment
-
The coordinates returned by eg. The rotated rects are formed by finding groups of connected text pixels in the input image and then determining the smallest rotated rect which encloses them. If the word is rotated, it is possible that some corners of such a rect may extend outside the boundaries of the input image. You can visualize the binary mask from which the rotated rects are formed by using the
You can visualize the word rects using the
The code which draws |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to write a program that can recognise text from an image and highlight in the image where the text is, but the bounding boxes returned by engine.detect_words don't seem to have coordinates that make any sense in the image e.g. text that is on opposite sides of the image have similar coordinates, coordinates are sometimes out of range, height and width don't seem to be in pixel units. Can anyone help me understand how the coordinates of RotatedRect::center() work?
Thanks,
agaeki
Beta Was this translation helpful? Give feedback.
All reactions