解决倒立文字验证


引用第三方库,调用接口进行识别

安装 zheye 第三方库
git clone https://github.com/996refuse/zheye.git
安装依赖包,并移动到项目目录下
其中 tensorflow 库,改为1.13版本
接口调用示例:
from zheye.zheye import zheye

z = zheye()
positions = z.Recognize('zhihu_image/a.gif')
print(positions)

Author: Ming Hui
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Ming Hui !
 Previous
验证码识别方法 验证码识别方法
编码实现( tesseract-ocr ) 这是 google 开源的一款识别工具,最早是用来识别文字的。 识别率低 不建议自己去开发,因为识别各种验证码,是需要大量时间的。 而且验证码一旦更改了,代码就无效了 在线打码 识别率高达90%
2020-08-09 Ming Hui
Next 
模拟 Chrome 知乎登录 模拟 Chrome 知乎登录
创建 chromedriver 实例class ZhihuReqSpider(scrapy.Spider): name = 'zhihu_req' allowed_domains = ['www.zhihu.com'] start_u
2020-08-09