博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python-验证码识别
阅读量:2259 次
发布时间:2019-05-09

本文共 308 字,大约阅读时间需要 1 分钟。

需要安装pillow,tesseract-ocr,tesseract库

tesseract-ocr需要去下载exe安装,然后要配置环境变量

要识别的验证码为

# -*- coding:utf-8 -*-__author__ = "MuT6 Sch01aR"import pytesseractfrom PIL import Imageimg = Image.open("test.jpg")vcode = pytesseract.image_to_string(img)print(vcode)

运行结果

识别成功

转载于:https://www.cnblogs.com/sch01ar/p/8417990.html

你可能感兴趣的文章
HTTP 错误 500.19- Internal Server Error 错误解决方法
查看>>
Mysql CPU占用高的问题解决方法小结
查看>>
前端如何使用proxyTable和nginx解决跨域问题
查看>>
idae中spring mvc解决问题application context not configured for this file于spring框架使用中的原因
查看>>
解决ajax异步传输数据,return返回为undefined的问题
查看>>
The prefix “mvc“ for element “mvc:annotation-driven“ is not bound 异常
查看>>
“Can’t be opened because Apple cannot check it for malicious software“ 解决方案
查看>>
Linux 中ifconfig和ip addr命令查看不到ip解决方法
查看>>
PL/SQL developer连接oracle出现“ORA-12154:TNS:could not resolve the connect identifier specified”问题的解决
查看>>
Oracle PLSQL 导出数据table xx contains one or more CLOB columns 解决方案
查看>>
如何解决谷歌Chrome浏览器空白页的问题
查看>>
如何利用PopupWindow实现弹出菜单并解决焦点获取以及与软键盘冲突问题
查看>>
STlink下载出现st-link usb communication error解决方法
查看>>
关于MATLAB中xlswrite函数写数据出现服务器异常情况的解决办法
查看>>
解决java前后端分离端口跨域问题
查看>>
MySql Unknown column 的解决方案
查看>>
ORA-04030: 在尝试分配...字节(...)时进程内存不足的原因分析解决方法
查看>>
开发中内存溢出问题及解决
查看>>
时间序列异常检测
查看>>
解决从本地文件系统上传到HDFS时的权限问题
查看>>