简体   繁体   中英

Installing pytesser on Ubuntu 14.04

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM