Python+selenium自动识别验证码

使用PIL+pytesseract+tesseract-ocr

python版本:3.6.3

tesseract-OCR  版本:3.02.02

 

①安装Pillow

cmd切换至pip:pip install Pillow

②安装pytesseract

pip install pytesseract

③手动下载tesseract-OCR.exe  安装 

④执行代码

 

补充:

第②步之后,进入“python\Lib\site-packages\pytesseract”目录,修改pytesseract.py文件中“tesseract_cmd”的地址。

 

以上

 

posted @ 2017-12-13 17:49  我是田舟  阅读(593)  评论(0编辑  收藏  举报