I want to try and run some pytesseract related programs. I have followed all the steps i.e
- Installed windows binaries and dependencies from https://github.com/UB-Mannheim/tesseract/wiki
pip install pytesseract
- Changed pytesseract.pytesseract.tesseract_cmd, straight from the path of tesseract.exe .
I'm still getting the TesseractNotFoundError. What I can do to fix it?
from PIL import Image
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r"D:/Program Files/Tesseract-OCR/tesseract"
content = pytesseract.image_to_string(Image.open(r'D:/test.jpeg'))
print(content)