I am looking for software that recognizes text within images. I tried out all of the tools mentioned here (gocr, fuzzyocr, libhocr0, ocrad, ocrfeeder, ocropus, tesseract-ocr, cuneiform). My input was a photograph of a printed document, hence not hand writing, just printed letters. Of all the tools, tesseract-ocr is the most accurate in my tests, but it still produces many many errors. Hence, scanning a document to some image file, and then continuing with indexing it or performing some NLP, sadly isn't an option. The error rate is too high.

So, given the age of the above mentioned posting, are there any better tools for extracting text from images or photographs?


With "image containing text" I mean, that I have a PNG/JPG/BMP file as a source and that I want to extract the pixelized text within it and have an ASCII/UTF-8 text as result and output.

  • I expect the issue you experience is likely due to a poor photo - try using an app like Office Lens or PhotoScan by google to get a straightened image – Tim May 18 '17 at 16:19
  • @Tim The idea is to index existing images containing text, so that those may be searched via text search. The Google Product works nice, but due to security and privacy issues not an option. Same for Microsofts OfficeLens. And I am specifically looking for a solution within Linux / Ubuntu. – Socrates May 18 '17 at 16:29
  • okay. My next suggestion was to upload them to OneDrive as it does auto OCR. Sorry I can't help more. – Tim May 18 '17 at 16:30
  • When you say "image containing text", do you mean ASCII text or pixel-ized text? I presume pixelized, otherwise the strings command could help? – user680858 May 18 '17 at 16:34
  • 1
    What is the language of the texts? (consider installing tesseract-langpack-...). What is the image resolution? See also tesseract4 and the comercial abbyyfinereader – user216043 May 18 '17 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.