Same image and commonad giving different results

76 views
Skip to first unread message

sant...@artivatic.ai

unread,
Feb 4, 2019, 6:15:04 AM2/4/19
to tesseract-ocr

I am using 'tesseract' command line to extract the information in this image.

Tesseract 4.0.0-115-ge3a3

command used

tesseract tmpy6s8p6m1.jpg stdout --oem 2 --psm 6

result

19AAXCS8821M1Z8


tesseract 4.0.0-274-gc999

command used

tesseract tmpy6s8p6m1.jpg stdout --oem 2 --psm 6

result

roaaxcossoimize

Can anyone help out?
Don't seem to understand how extraction can change by so much.

tmpy6s8p6m1.jpg

Shree Devi Kumar

unread,
Feb 4, 2019, 7:21:33 AM2/4/19
to tesser...@googlegroups.com
Try your commands with --oem 1 or with default. It works fine 

TESSDATA_PREFIX=/home/ubuntu/tessdata_best

$ tesseract  -v
tesseract 4.0.0-272-g005f
 leptonica-1.76.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0

$ tesseract tmpy6s8p6m1.jpg stdout --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
19AAXCSB8821M1Z8



--
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/a973d7cd-3ed0-426e-babb-e0362b745c2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

Shree Devi Kumar

unread,
Feb 4, 2019, 7:22:59 AM2/4/19
to tesser...@googlegroups.com
ubuntu@tesseract-ocr:~/TEST$ tesseract tmpy6s8p6m1.jpg stdout --psm 6 --tessdata-dir ../tessdata_fast
Warning: Invalid resolution 0 dpi. Using 70 instead.
1 GAAXCS8821M1Z8
ubuntu@tesseract-ocr:~/TEST$
ubuntu@tesseract-ocr:~/TEST$ tesseract tmpy6s8p6m1.jpg stdout --psm 6 --tessdata-dir ../tessdata_best
Warning: Invalid resolution 0 dpi. Using 70 instead.
19AAXCSB8821M1Z8
ubuntu@tesseract-ocr:~/TEST$ tesseract tmpy6s8p6m1.jpg stdout --psm 6 --tessdata-dir ../tessdata
Warning: Invalid resolution 0 dpi. Using 70 instead.
19AAXCS8821M1Z8
ubuntu@tesseract-ocr:~/TEST$

sant...@artivatic.ai

unread,
Feb 4, 2019, 7:59:35 AM2/4/19
to tesseract-ocr
Where can i find the testdata_best or testdata?

Still i am not able to get the result if i remove --oem 2 or use --oem 1

sant...@artivatic.ai

unread,
Feb 4, 2019, 8:00:15 AM2/4/19
to tesseract-ocr
Where can i find the testdata_best or testdata?

Still i am not able to get the result if i remove --oem 2 or use --oem 1

Shree Devi Kumar

unread,
Feb 4, 2019, 8:04:25 AM2/4/19
to tesser...@googlegroups.com

--
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.

For more options, visit https://groups.google.com/d/optout.

sant...@artivatic.ai

unread,
Feb 5, 2019, 2:07:00 AM2/5/19
to tesseract-ocr
Didn't solve the issue
Reply all
Reply to author
Forward
0 new messages