windows安装pytesser3进行图像识别

PIL安装

 Windos平台可以直接去PIL官网下载exe安装包。http://pythonware.com/products/pil/

注:官网提供的安装包是32位的,63位系统请前往这里 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow 下载替代包pillow。

 

pytesser3安装

下载地址:
https://github.com/songluyi/pytesser3

解压放到  python安装目录\Lib\site-packages

修改__init__.py文件里面的tesseract路径

 

测试图片:

测试代码:

from pytesser import pytesser
print(pytesser.image_file_to_string('1.jpg'))

 

结果:

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章