1

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.

Community
  • 1
  • 1
Balraj Parmar
  • 13
  • 1
  • 4
  • 1
    https://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 Answers1

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