tesserocr
tesserocr copied to clipboard
AttributeError: type object 'tesserocr.OEM' has no attribute 'LSTM_ONLY': linux distro contains old tesseract?
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?
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.
@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?
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)