I had an error compiling the code:
import tessercat api = tesseract.TessBaseAPI()
Error:
AttributeError: the 'module' object does not have the 'TessBaseAPI' attribute
I already installed tesseract via pip . Python version is 2.7 Windows 32bit.
tesseract
pip
I think you are trying to use the python tesseract shell (python-tesseract). Make sure you are using the correct version. You can check this: python-tesseract-0.7.6.win32-py2.7.exe
Make sure you do not need to import a subclass, i.e. from tesseract import XYZ
from tesseract import XYZ
Also - not sure if it was a typo, but your import module is wrong.