Not getting complete text from JPG

95 views
Skip to first unread message

Leena

unread,
Jul 1, 2019, 3:07:45 AM7/1/19
to tesseract-ocr
Dear Developer,

Attached code, input image and output file that is used to extract text from input image. Used tessract OCR to extract the text from flow diagram, but not getting text of each box, few are extracted. Please analyse and suggest changes to get full text.

Thanks
testfile.txt
Input_img.jpg
graph_text.py

Leena

unread,
Nov 3, 2019, 11:08:03 AM11/3/19
to tesseract-ocr
Any help please.

Zdenko Podobny

unread,
Nov 3, 2019, 11:22:36 AM11/3/19
to tesser...@googlegroups.com
Tesseract (in google) was develop and extended in google book (OCR) project and it work best on straight clean line of text.
So it tend to skip graphics and noise. Your input is full graphics.
Therefore in this case you need to do your own page layout analyze and send only text regions (without border) to tesseract.
Other option is to remove graphics element before sending image to tesseract.


Zdenko


ne 3. 11. 2019 o 17:08 Leena <leen...@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 view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/7be9b4b1-7e81-475e-b4da-ee743d90a1e7%40googlegroups.com.

Leena Chourey

unread,
Nov 3, 2019, 11:53:13 AM11/3/19
to tesser...@googlegroups.com
Thanks for reply. 
Means I should try by separating text from image content means shapes and scanned by OCR? But hope that the grouping of text with shapes(which shape contains what text) will not miss.

You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/TTHIS9iq-dg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8z4fRonaUJXgs8osrhJQyv470ou1zwWjhBac4E6E4aCtw%40mail.gmail.com.


--
Thanks & Regards, -धन्यवाद
Leena लीना 
Reply all
Reply to author
Forward
0 new messages