How to get bounding boxes for text in images.

1,577 views
Skip to first unread message

Somesh Kumar

unread,
Sep 19, 2017, 11:27:47 AM9/19/17
to tesseract-ocr
Hi

I have used tesseract-ocr in my application and I am able to get the result(i.e extracting the text from image in form of multiple strings) using the wrapper 'pytesseract'.
For a requirement in the application, I need to draw bounding boxes around each word so that I could get the co-ordinates of each word or is there any possibility that i can get coordinates for the text in the image.

It could be a great help if any one can suggest me the correct way.

Quan Nguyen

unread,
Sep 19, 2017, 3:17:57 PM9/19/17
to tesseract-ocr

Somesh Kumar

unread,
Sep 20, 2017, 6:36:57 AM9/20/17
to tesseract-ocr
Hi Quan Nguyen

Iam using python for extracting the text. The link that you have provided has the API Examples for C++. Can you provide any other resources for the api using python.
 I have tried with the wrappers for tesseract-OCR in python, but I was unable to get the co-ordinates.I am using Windows OS.


Reply all
Reply to author
Forward
0 new messages