There are a lot of questions about the error "tesseract is not installed or it's not in your PATH", I did not solve though.
I am using macOS and from the terminal I tried:
- pip install pytesseract
- brew install tesseract
and finally on my script:
from pytesseract import image_to_string
and then:
pytesseract.tesseract_cmd = r'<path>'
for path I wrote in the terminal: "brew list tesseract" and I got a list of path:
- /usr/local/Cellar/tesseract/5.2.0/bin/tesseract
- /usr/local/Cellar/tesseract/5.2.0/include/tesseract/ (12 files)
- /usr/local/Cellar/tesseract/5.2.0/lib/libtesseract.5.dylib
- /usr/local/Cellar/tesseract/5.2.0/lib/pkgconfig/tesseract.pc
- /usr/local/Cellar/tesseract/5.2.0/lib/ (2 other files)
- /usr/local/Cellar/tesseract/5.2.0/share/tessdata/ (35 files)
I used the first one and also "/usr/local/bin/tesseract" which I obtained writing on the terminal "which tesseract".
Well, no one of these step worked, I still get the error message. Any solution?