-
Notifications
You must be signed in to change notification settings - Fork 255
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
tesserocr fails to detect Tesseract 4 #60
Comments
Digging a bit deeper: the Tesseract version is set during setup.py execution. Therefore reinstalling was necessary. Unfortunately it only popped another error:
|
Switching to the right branch (my bad) solved that problem, now I get:
As the first line shows, I do have fra, eng, osd in my tessdata path... |
Okay so I did some troubleshooting and I think I figured some stuff. The For example, both
and
will return While setting the environnement variable to I'll try to make a Pull Request that fixes this tonight. |
Here's what I did:
Observations:
Unfortunately, working with the Cython code seems to indicate a problem on Tesseract's end and not Tesserocr. The passed path argument is right in the
call. |
Similar error on ubuntu 14.04. apt-get version not match |
@eromoe You have to
Hopefully that helps |
@Kankroc My problem is And |
@eromoe Yeah I had that problem too, probably worth looking into it ( |
Note that installing tesseract from source does not include tessdata which should be downloaded separately from https://github.com/tesseract-ocr/tessdata. I've pushed a change to show the current tessdata path in the runtime exception to make it easier to debug. |
From my experience , an working example
|
got the same problem. WHen i updated and upgraded ubuntu (sudo apt-get upgrade/update) This error appeard: RuntimeError: Failed to init API, possibly an invalid tessdata path: /usr/share/tesseract-ocr/ |
Can you please explain how you solved the error - undefined symbol: omp_get_thread_num |
* 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 compiled Tesseract 4 from source and tried it from the command line (it works). Executable is in /usr/local/bin, library is in /usr/local/lib.
tesserocr will still load Tesseract 3 which shouldn't be on my system anymore according to apt-get.
The text was updated successfully, but these errors were encountered: