Python中关于 验证码识别问题成功解决方案
1.使用pip安装pytessseract
2.下载Tesseract ,软件下载网址https://github.com/tesseract-ocr/tesseract/wiki/4.0-with- LSTM#400-alpha-for-windows,下载完成后安装
配置环境
3.在Python安装路径下D:\python\Lib\site-packages\pytesseract里面的pytesseract.py文件,打开此文件将文件中的 tesseract_cmd=“tesseract” 修改成自己的安装路径
程序实例
im= Image.open('image/1.jpg')
content=pytesseract.image_to_string(im)