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.
The PATH
variable should include directories only, not files, such as C:\Program Files (x86)\Tesseract-OCR
.
The solution is the following you have to add cd
first ...
Example:
cd C:\Program Files (x86)\Tesseract-OCR
C:\Program Files (x86)\Tesseract-OCR> tesseract --version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With