I am trying to create a bounding box around each character in an image. I have converted the image to binary and thresholded it but I don't understand how to create a bounding box despite reading the manual.
Asked
Active
Viewed 1,323 times
-3
-
1I think I've never read a question that bad. DOWNVOTE!! – guitarflow May 14 '12 at 15:48
2 Answers
1
There are a few options for the bounding box technique, but I think you'll get a great result combining these two:
First, use the technique demonstrated here to detect a large portion of text and put a bounding rectangle around it so you crop the image to this area;
Second, experiment with the technique recently presented by OpenCV, also demonstrated here. It could be used to locate/extract individual characters on the resulting image of the first step.
I suppose you are trying to implement the OCR mechanism yourself instead of relying on great APIs such as Tesseract.
If you are looking for more information on how to do digit/text recognition, check this answer.

Community
- 1
- 1

karlphillip
- 92,053
- 36
- 243
- 426