I had the same problem and was scratching my head at how to solve it and then realised that the answer was there all the while:
*Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.* Just had to copy the eng.traineddata osd.traineddata files into the parent directory i.e. one level up In my case these files were in this location: /usr/share/tesseract-ocr/4.00/tessdata/ Starting from that location I copied them to here: /usr/share/tesseract-ocr/4.00/ sudo cp -i eng.traineddata osd.traineddata /usr/share/tesseract-ocr/4.00/ After this the OCR worked -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/0e34e146-9418-4b7e-afe4-be0ff5307692%40googlegroups.com.

