Warning. Invalid resolution 0 dpi. Using 70 instead

5,615 views
Skip to first unread message

Terry Bryant

unread,
Feb 27, 2018, 9:23:00 AM2/27/18
to tesseract-ocr
Hello everyone. I'm facing this above problem when my input image is the attached file.

My os:                  ubuntu14.04
My input image:   in attached file(which is a .png file)
My command:      tesseract 0a2d.png out

My output:            "Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
                             Warning. Invalid resolution 0 dpi. Using 70 instead.
                             Estimating resolution as 281
                             Empty page!!
                             Estimating resolution as 281
                             Empty page!!"

This engine is supposed to give the correct answer "0a2d".
I'm new to this ocr engine, so anyone can help me with this problem, many thanks:)
0a2d.png

ShreeDevi Kumar

unread,
Feb 27, 2018, 12:08:37 PM2/27/18
to tesser...@googlegroups.com
Which version of tesseract are you using?

--
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-ocr+unsubscribe@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/a0cc5dfe-3c86-46a7-a0d0-0db8fbae5763%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Terry Bryant

unread,
Feb 27, 2018, 8:41:55 PM2/27/18
to tesseract-ocr
Hi, it's "tesseract 4.00.00alpha
 leptonica-1.75.3
  libjpeg 8d (libjpeg-turbo 1.3.0) : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8"

On Wednesday, February 28, 2018 at 1:08:37 AM UTC+8, shree wrote:
Which version of tesseract are you using?
On 27-Feb-2018 7:52 PM, "Terry Bryant" <terry...@gmail.com> wrote:
Hello everyone. I'm facing this above problem when my input image is the attached file.

My os:                  ubuntu14.04
My input image:   in attached file(which is a .png file)
My command:      tesseract 0a2d.png out

My output:            "Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
                             Warning. Invalid resolution 0 dpi. Using 70 instead.
                             Estimating resolution as 281
                             Empty page!!
                             Estimating resolution as 281
                             Empty page!!"

This engine is supposed to give the correct answer "0a2d".
I'm new to this ocr engine, so anyone can help me with this problem, many thanks:)

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

ShreeDevi Kumar

unread,
Feb 27, 2018, 9:30:27 PM2/27/18
to tesser...@googlegroups.com
try with --psm 6, 7 or 8, i get correct results with it

  6    Assume a single uniform block of text.
  7    Treat the image as a single text line.
  8    Treat the image as a single word.


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

To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Terry Bryant

unread,
Feb 27, 2018, 10:33:45 PM2/27/18
to tesseract-ocr
Could you please write down the command text? Cause my command is like "tesseract 0a2d.png out -psm 7", still don't have the right answer...

ShreeDevi Kumar

unread,
Feb 27, 2018, 11:09:08 PM2/27/18
to tesser...@googlegroups.com
Which traineddata file are you using? 

I am using the ones from tessdata_fast.

I will have to recheck the commands that I had used.

Usually it will be on the lines of

tesseract input.png outputbase --psm 6 --oem 1 -l langcode

To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Terry Bryant

unread,
Feb 27, 2018, 11:30:23 PM2/27/18
to tesseract-ocr
Ok, thanks, I've got the answer!
Reply all
Reply to author
Forward
0 new messages