Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[python]has no attribute 'TessBaseAPI'

I got an error when I compiled code blow:

import tessercat
api = tesseract.TessBaseAPI()

The error is:

AttributeError:'module' object has no attribute 'TessBaseAPI'

I have already installed tesseract via pip. The Python version is 2.7 Windows 32bit.

like image 951
Michael Avatar asked Nov 10 '22 11:11

Michael


1 Answers

I think you are trying to use python wrapper of tesseract (python-tesseract). Make sure you are using the right version. You can check this one: python-tesseract-0.7.6.win32-py2.7.exe

like image 62
azri.dev Avatar answered Nov 15 '22 13:11

azri.dev