Skip to content
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

AttributeError: type object 'tesserocr.OEM' has no attribute 'LSTM_ONLY': linux distro contains old tesseract? #263

Open
dickreuter opened this issue Jul 7, 2021 · 3 comments

Comments

@dickreuter
Copy link

When running under linux I get
AttributeError: type object 'tesserocr.OEM' has no attribute 'LSTM_ONLY'

It works fine when running it under windows. Is this because linux has an older version when pip installing it? Is there a way to get tesseract 4 on Linux with pip install?

@zdenop
Copy link
Contributor

zdenop commented Sep 15, 2021

pip is used to install python packages only. Tesseract 4 needs to be installed by the standard by Linux distro tool for managing packages or from the source. And tesseract 4 (including the development part) has to be installed before you install tesserocr.

@adsk2050
Copy link

adsk2050 commented Apr 10, 2023

@zdenop How will tesserocr know where Tesseract is installed? I am working in windows. Is there any way to specify the path of the tesseract executable like there is in pytesseract?

@zdenop
Copy link
Contributor

zdenop commented Apr 11, 2023

On windows python (from version 3.9?) requires that used library must be located in package folder e.g. windows tesseroct package must include tesseract library (see https://github.com/simonflueckiger/tesserocr-windows_build/releases)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants