I want to use pytesser OCR and I would like to make same changes in the system so that I can import it as a module from anywhere in the system. I tried using advice given on (Installing pytesser) but It's not working for me.
Asked
Active
Viewed 2,975 times
1
-
1https://code.google.com/archive/p/pytesser/ Read this. I think `pytesser` for windows only. For ubuntu you have to install `pytesseract`. It can be done like this 'pip install pytesseract`. – Rahul K P Jun 04 '16 at 13:51
1 Answers
4
you can use
pip install pytesseract
You should use PIL to open an image and feed pytesseract. PIL, is short for Python Image Library. Just a image library.
pytesseract is a wrapper of tesseract.
from PIL import Image
import pytesseract
im = Image.open('/home/xxxxxxx/Downloads/img.jpg')
text = pytesseract.image_to_string(im)
print (text)

Prakash Palnati
- 3,231
- 22
- 35