天空宫阙 发表于 2020-7-5 20:10:17

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

# 微博验证码识别仅用于学习之用,禁止用于非法用途 基于深度学习框架 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)


天空宫阙 发表于 2020-7-5 20:14:00

额,不支持markdown吗

loco 发表于 2020-7-7 10:50:58

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

tonycai 发表于 2020-8-9 12:06:42

给力啊
页: [1]
查看完整版本: 微博验证码本地识别服务 pytorch