-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_languages #551
Comments
This seems to be a Tesseract issue, not a pytesseract one. Please verify that Tesseract can find any language files using |
I've just reinstalled tesseract with the pip command and the problem persists. |
pytesseract is just a wrapper around Tesseract, which needs to be installed separately. Please refer to the Tesseract project for further installation instructions: https://github.com/tesseract-ocr/tesseract?tab=readme-ov-file#installing-tesseract |
I just found the language files in 'usr/local/bin/tesseract-lang/4.1.0/share/tessdata'. |
In the best case, your Tesseract installation already picks this up. Otherwise, you have to set the environment variable |
I've just seen that the Tesseract version is 5.2. Maybe that's where the problem lies. |
os.environ["TESSDATA_PREFIX"] = 'usr/local/bin/tesseract-lang/4.1.0/share/tessdata/' |
In this case it seems like the English language data is not available, which AFAIK is always required. |
I uninstall tesseract, then reinstall it. |
hi, by reinstalling everything, tesseract is now operational. |
Hi,
the print(pytesseract.get_languages(config='')) command
returns an empty list.
I use python3.9
I deleted pytesseract, restarted my macbook, then reinstalled pytesseract. I still have the same problem. How can I install the list of languages?
Thanks for your feedback.
Sincerely
The text was updated successfully, but these errors were encountered: