After succesfully installing tesseract_ocr in Ubuntu it shows no mudule named tesseract_ocr

1.4k views Asked by At

I installed Tesseract OCR through Linux terminal, but when I tried to import it in Python, the error appeared:

/usr/bin/python2.7 /home/web/Documents/pnt/ocr.py
Traceback (most recent call last):
File "/home/web/Documents/pnt/ocr.py", line 1, in
import tesseract
ImportError: No module named tesseract

1

There are 1 answers

0
Phillip Graham On

To check if you properly installed tesseract-ocr on the system. First try entering into your command line:

tesseract

and/or

whereis tesseract-ocr

Now for the next step you need a wrapper for tesserect, such as pytesseract or python-tesseract, to import and use the ocr in python.