Search code examples
windowspython-3.xtesseract

Can't seem to run tesseract from command line despite adding PATH


I'm trying to add tesseract to be able to install pytesseract. I use Windows 7.

I add this path to my PATH environmental variable C:\Program Files (x86)\Tesseract-OCR\tesseract.exe

From the command line if I run

tesseract DMTX_screenshot.png out OR tesseract

I'm getting

tesseract is not recognized as an internal or external command.

Here is a copy-paste of the a portion of my environmental variable:

C:\Program Files (x86)\Tesseract-OCR\tesseract.exe;C:\Users\Moondra\Anaconda_related\Anaconda\geckodriver.exe;

Any ideas as to what I may be doing wrong?

Thank you.


Solution

  • So It seems there are two version for Windows, 4.00 and 3.05 -- 4.00 is still buggy. I installed the 3.05 version and seems to work fine now.

    Here is where I got the 3.05 version.

    https://github.com/UB-Mannheim/tesseract/wiki