Is it possible to set resolution on a PNG for tesseract 3.05.02?

329 views
Skip to first unread message

pbw

unread,
Aug 12, 2018, 9:30:24 AM8/12/18
to tesseract-ocr
I have generated PGM images from a pdf file, using pdttoppm -gray.  The clarity of these images is dramatically improved by setting a resolution of 300 or even 600. For tesseract, I convert these to PNGs.
Running against a PNG, I always see this:

Warning. Invalid resolution 0 dpi. Using 70 instead.

I have tried using IM convert to add a -density to the PNG, but it is not recognised by tesseract.  In any case, tesseract processes the image.  I have two questions.

1) Is it possible to set resolution on a PNG in a way that tesseract will recognise?
2) Would it make any difference to the tesseract result?

Thanks.
Reply all
Reply to author
Forward
0 new messages