-3

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.

Crippledsmurf
  • 3,982
  • 1
  • 31
  • 50
user1246980
  • 57
  • 1
  • 4

2 Answers2

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
0

As said before "rudely", I encourage you to rewrite your question with more detail on what you already did. We didn't understand what you would like to do. If character recognition is what you want, have a look at this.

Eric
  • 2,301
  • 3
  • 23
  • 30