본문 바로가기

Programming/▷ Python

ocr library module PIL, pytesser

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 :)

'Programming > ▷ Python' 카테고리의 다른 글

python ror, rol source  (0) 2018.03.09
base64 encode, decode source  (0) 2018.03.09
Solving CTF captcha challenge by use ocr  (4) 2018.03.03