python - Error with PIL import Image, and pytesser import -
i new python. attempting create python ocr program, , following tutorial online it. here recommended code use:
from pil import image pytesser import * image_file = 'menu.tif' im = image.open(image_file) text = image_to_string(im) text = image_file_to_string(image_file) text = image_file_to_string(image_file, graceful_errors=true) print "=====output=======\n" print text
the tutorial link found here. getting error when running code however.
pytesser import * importerror: no module named 'pytesser'
i have followed instructions, installing ocr here , pytesser library here code(dot)google(dot)com/archive/p/pytesser/downloads (sorry because <10 rep can't post more 2 links).
this (see gyazo below) screenshot of installation files far, "pytesser_v0.0.1" pytesser folder, "tesseract-master" found on github (probably not relevant), , "tessinstall" folder installed tesseract , pyimgr.py file attempting run.
gyazo(dot)com/333f8a3333e87895558f26875a8a8487
i getting error regarding pil import image. should not using pil, there other way can import image without pil? maybe pillow?
my python version 3.5.2 , using windows 10.
please see https://codedump.io/share/bnzb430pwdi0/1/installing-pytesser may help, (sorry can't comment low rep)
Comments
Post a Comment