coordinates of a skewed image

73 views
Skip to first unread message

Varun Ejanthkar

unread,
Apr 13, 2017, 1:56:20 AM4/13/17
to tesseract-ocr
Hi,I have given a skewed image as input to Tesseract-ocr.
The plain text output generated de-skews the image and is giving the correct output.
But in hocr output, the bounding box coordinates of the words are with respect to the original skewed image.
So,Is there any way to get the coordinates of the words of image which is deskewed by the tesseract or can we get hold of deskewed image itself?
Thank you.

Dominik Jesiolowski

unread,
Apr 21, 2017, 9:52:35 AM4/21/17
to tesseract-ocr

Hi,

Don't think Tesseract deskews the image internally.
You can deskew it before loading to Tesseract,
have a look at leptonica source:
prog/skewtest.c

Regards,
Dominik
Reply all
Reply to author
Forward
0 new messages