国税发票查验验证码识别

2021-02-18 17:27:38 +08:00
 legend99
import base64
import requests

with open('./test02.png', 'rb') as f:
    img_bytes = f.read()

img_base64 = base64.b64encode(img_bytes)
# '00' 黑色 '01' 红色 '02' 黄色 '03' 蓝色
data = {'image': str(img_base64, 'utf-8'), 'key': '03'}
result = requests.post('http://47.99.174.98:8808/captcha', json=data)
# 返回 json 格式数据{"code": "7RT"}
print(result.json())
1605 次点击
所在节点    Python
4 条回复
legend99
2021-02-18 17:39:56 +08:00
yqmac
2021-02-18 17:45:34 +08:00
牛批了我滴哥,训练样本是人工打码来的么
yqmac
2021-02-18 18:46:04 +08:00
去网站看了一下,返回值能解析出颜色和图片。根据颜色筛就明了了。吆西。打码都不需要了
justin2018
2021-02-18 20:06:24 +08:00
http://47.99.174.98:8808/captcha

这是推广 还是 ?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/753981

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX