Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Tesseract OCR and was able to convert a TIF image to its corresponding text. The application seems fairly easy to use, but I am struggling finding the documentation that will help me make the most of it. So, here are a couple of questions I hope someone here can help me with:

  1. I'm converting PDFs to TIFs using ImageMagick. What settings do I need to use when I make this conversion? Basically, what image settings would be optimal for OCR?

  2. How do I use hOCR?


share|improve this question

migrated from Oct 29 '10 at 0:04

This question came from our site for professional and enthusiast programmers.

Honestly, I've never been able to find a command for ImageMagick that produces a TIF in the format that Tesseract prefers. My own solution was instead to have ImageMagick convert each PDF page to a PNG, build Tesseract with Leptonica and then run Tesseract against those images.

And to use hOCR, make a new text file with the following text in it: "tessedit_create_hocr 1". Save it somewhere and when you execute tesseract use:

tesseract [inputFile] [outputFile] [-l optionalLanguageFile] [PathTohOCRConfigFile]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.