-
Notifications
You must be signed in to change notification settings - Fork 111
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
urllib.error.HTTPError: HTTP Error 404: Not Found #36
Comments
I am facing to exact same problem. I also tried fixing the urls referenced in constants.py |
I had the same issue, and I don't know how to fix the automated download. However, if you simply go to |
I ran into the same issue and putting TESSDATA_URL = 'https://github.com/tesseract-ocr/tessdata_fast/blob/main/{}.traineddata?raw=true' TESSDATA_SCRIPT_URL = 'https://github.com/tesseract-ocr/tessdata_best/blob/main/{}.traineddata?raw=true' in constants.py fixes the downloading issue! |
@hadis-git are you sure? it still gives me error. |
Yes, I am sure, Line 5 in 9b97c99
Line 9 in 9b97c99
So you have to make sure that your lang parameter corresponds to one or more of the available models. |
What's the error you get? |
Traceback (most recent call last): |
Well, it's telling you that the url to the language models is wrong. Line 20 in 9b97c99 Then you'll see if you edited the right constants.py |
This is because the branch name of tessdata_fast and tessdata_best changed from master to main, so the URL in file videocr/constants.py must changed, from : TESSDATA_URL = 'https://github.com/tesseract-ocr/tessdata_fast/raw/master/{}.traineddata'
TESSDATA_SCRIPT_URL = 'https://github.com/tesseract-ocr/tessdata_best/raw/master/script/{}.traineddata' to TESSDATA_URL = 'https://github.com/tesseract-ocr/tessdata_fast/raw/main/{}.traineddata'
TESSDATA_SCRIPT_URL = 'https://github.com/tesseract-ocr/tessdata_best/raw/main/script/{}.traineddata' we must wait for owner of this repository fix this issue, otherwise if you want to change it yourself, change this file in your pip library installation directory, in linux if you install using pip the directory is |
you can also download the traineddata file and put it to filepath as well. |
not sure why this is happening. I'm guessing it's a version problem. Trying to run the example code with my own video (full system path specified)
@apm1467 Any chance you could provide the exact python version, tesseract version you used successfully?
The text was updated successfully, but these errors were encountered: