3回答

3收藏

微博验证码本地识别服务 pytorch

信息分享 信息分享 2866 人阅读 | 3 人回复 | 2020-07-05

# 微博验证码识别仅用于学习之用,禁止用于非法用途 基于深度学习框架 pytorch 跑完22万数据集 准确率99%## 感谢数据集的提供https://bbs.nightteam.cn/thread-470.htm
## 使用方法### 下载或克隆整个项目 ```git clone https://github.com/skygongque/captcha-weibo.git```
### 安装依赖
```pip install -r requirements.txt```
### 启动flask服务
```python app.py```
### 测试验证码识别

在`client.py`

```

#.....


content = get_captcha() with open('current_captcha.jpg','wb') as f: f.write(content) f.close()
payload = { # 图片的二进制用base64编码一下 'img':base64.b64encode(content)  } response = requests.post('http://127.0.0.1:5000/sina',data=payload) # print(response.text) print('当前目录current_captcha.jpg的识别结果',response.json()['result'])



```

### 效果

## 其他[训练过程](https://github.com/skygongque/captcha_crack_demo/tree/master/captcha_sina/training_process) [训练方法参考](https://github.com/ypwhs/captcha_break)


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
分享到:
回复

使用道具 举报

回答|共 3 个

天空宫阙

发表于 2020-7-5 20:14:00 | 显示全部楼层

额,不支持markdown吗
回复

使用道具 举报

loco

发表于 2020-7-7 10:50:58 | 显示全部楼层

支持,但是为了那个回帖可见就干掉了,后续会尝试做兼容
回复

使用道具 举报

tonycai

发表于 2020-8-9 12:06:42 | 显示全部楼层

给力啊
回复

使用道具 举报