5

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.

2
  • 1
    Michael! I have the same problem on Mac OSX and saw the answers to your question but they were not helpful. Did you solve the problem? If so, could you please let me know what the solution was? Commented Aug 16, 2015 at 12:34
  • 1
    @MehdiJafarniaJahromi same here.. Commented Jan 28, 2016 at 11:08

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

Make sure that you don't need to import a sublcass ie from tesseract import XYZ

Also - not sure if this was a typo but your import module is misspelled.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.