Wrong full page box in hocr output

42 views
Skip to first unread message

Arno Loo

unread,
Jun 20, 2019, 8:16:05 AM6/20/19
to tesseract-ocr
Hello,

I have a recurrent problem and I don't understand why it is happening : for many of the documents I have, Tesseract's hocr output is giving incoherent bbox for a few ocrx_word. These ocrx_words are always composed of a single character and their bbox takes the entire page, which is weird because these ocrx_words are part of ocr_lines which have correct bboxes.

In the example I provided, the ocrx_word is an error as it detects the line from the table as a |. But in most cases, the character read in the word is correct, only its bbox is wrong.

Is anyone knows why it is happening and how I could fix it ?

The parameters I use are nothing fancy :
tesseract input.jpg output -l eng -c tessedit_create_hocr=1

Thank you.
IN_04.jpg
hocr.PNG

Zdenko Podobny

unread,
Jun 21, 2019, 9:44:27 AM6/21/19
to tesser...@googlegroups.com
try the latest code: there was fix regarding bbox after releasing tesseract 4.0

Zdenko


št 20. 6. 2019 o 14:16 Arno Loo <arno....@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/51affae0-665e-408c-a7d9-de47b6cbf9e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arno Loo

unread,
Jun 25, 2019, 5:15:52 AM6/25/19
to tesseract-ocr
Glad to read that !

Thank you Zdenko
Reply all
Reply to author
Forward
0 new messages