码迷,mamicode.com
首页 > 编程语言 > 详细

python使用tesseract-ocr完成验证码识别

时间:2017-04-30 14:05:16      阅读:339      评论:0      收藏:0      [点我收藏+]

标签:failed   ges   directory   ref   python使用   环境   env   prefix   windows   

全自动区分计算机和人类的公开图灵测试Completely Automated Public Turing test to tell Computers and Humans Apart)

简称CAPTCHA, 俗称验证码

 

windows

1.安装tesseract, 

安装路径加入path, 设置TESSDATA_PREFIX环境变量

否则报错:

‘Error opening data file \\exe\\Tesseract-OCR\\tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language \\‘eng\\‘
Tesseract couldn\\‘t load any languages!
Could not initialize tesseract.

2.pip install pytesseract  

python使用tesseract-ocr完成验证码识别

标签:failed   ges   directory   ref   python使用   环境   env   prefix   windows   

原文地址:http://www.cnblogs.com/yuyutianxia/p/6789254.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!