Tesseract AdaptToWordStr usage?

26 views
Skip to first unread message

Syed Uzair

unread,
Jul 31, 2017, 7:39:37 AM7/31/17
to tesseract-ocr
Hello all

I am trying to extract text from the attached image (010003.bin.png) using tesserocr (python wrapper for Tesseract 3.04 API). When i used the script TestAdapttoWord.py (attachment) with the lines 18,19 commented my console reads like output1.png (attachment) and when i uncomment lines 18,19 my console reads like output2.png (attachment).
According to AdaptToWordStr documentation, it will return true if it was able to adapt to the given word. I am getting true but after that when i do GetUTF8Text i get empty results. I was hoping it would give correct result after AdaptToWordStr returns true.

I am not sure whether i am using AdapttoWordsStr correctly or not because the documentation doesn't say much. Is my interpretation of AdaptToWordStr is correct?  
I am on Ubuntu 16 using Tesseract 3.04.

Thanks


output1.png
output2.png
TestAdapttoWord.py
010003.bin.png

Syed Uzair

unread,
Jul 31, 2017, 8:17:47 AM7/31/17
to tesseract-ocr
Sorry made a mistake in attached file names. 
When i uncomment lines 18,19 my console reads like output3.png (attachment).
output2.png is the debug file.

Thanks
output3.png
Reply all
Reply to author
Forward
0 new messages