Programming/▷ Python
ocr library module PIL, pytesser
Gyeongje
2018. 3. 1. 03:07
how to import library module PIL, pyteeser
PIL
PIL(Image module) = import_PIL_site (Pillow-2.7.0-cp27-none-win_amd64) - python 2.7
> pip install Pillow-2.7.0-cp27-none-win_amd64
Pytesser
pytesser_v0.0.1.zipor import_pytesser_site
download file and copy pytesser folder at C:\Python27\Lib
and copy pytesser.py at C:\Python27\Lib
change name C:\Python27\Lib\pytesser\pytesser.py -> C:\Python27\Lib\pytesser\__init__.py
modify __init__.py
1. import Image -> from PIL import Image
2. tesseract_exe_name = 'tesseract' -> tesseract_exe_name = 'C:\\Python27\\Lib\\pytesse\\tesseract'
and you can use ocr library modlue :)