-
Notifications
You must be signed in to change notification settings - Fork 254
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
Ubuntu 14.04 docker image error: Failed to init API, possible an invalid tessdata path: /usr/local/share/ #101
Comments
can you give |
Tried that, but that also did not work :/ |
Ok, there might be an issue with the handling of the tessdata path if you build tesserocr with a tesseract version past commit dba13db and I'm currently working on a pull request which should fix that. What build of tesseract are you using? Did you build it yourself or did you download the binaries from somewhere? |
I've used the following commands to build Tesseract.
For building Tesserocr, I'm using the following commands:
So since I'm not specifying any particular build version, it's taking the latest one I guess. |
Exactly, Can you try the following:
now set TESSDATA_PREFIX to '/usr/local/share/tessdata/' and init without the path argument set in PyTessBaseAPI() |
Tried this, it's not working :/ . Any other solution? |
let's chat [tlk.io url expired] |
Can we chat now ? |
so it ended up (most likely) being a corrupted eng.traineddata file which was fixed by redownloading it:
@sirfz this issue can be closed now |
Thanks a lot!! |
* Update README.rst Add information about tessdata. There are a lot of issues about this and nothing in the readme yet. The information is just what i gathered from these issues and get from my own experience. Related issues: sirfz/tesserocr#101 sirfz/tesserocr#28 sirfz/tesserocr#60 sirfz/tesserocr#100 Co-authored-by: Fayez <iamfayez@gmail.com>
* Update README.rst Add information about tessdata. There are a lot of issues about this and nothing in the readme yet. The information is just what i gathered from these issues and get from my own experience. Related issues: sirfz/tesserocr#101 sirfz/tesserocr#28 sirfz/tesserocr#60 sirfz/tesserocr#100 Co-authored-by: Fayez <iamfayez@gmail.com>
I'm using tesseract-ocr (version 4.00 beta) with tesserocr (2.2.2) and the location of tessdata folder is: /usr/local/share/
But I'm still getting the invalid tessdata path error. I've tried the following to fix it:
The location of the tessdata folder is correct but I'm still not able to use this.
Note: I'm using docker with ubuntu 14.04 image and tesserocr version is 2.2.2 and tesseract version is 4.00 beta
How do I resolve this issue?
The text was updated successfully, but these errors were encountered: