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())
1 legend99 OP |
![]() | 2 yqmac 2021-02-18 17:45:34 +08:00 牛批了我滴哥,训练样本是人工打码来的么 |
![]() | 3 yqmac 2021-02-18 18:46:04 +08:00 去网站看了一下,返回值能解析出颜色和图片。根据颜色筛就明了了。吆西。打码都不需要了 |
![]() | 4 justin2018 2021-02-18 20:06:24 +08:00 http://47.99.174.98:8808/captcha 这是推广 还是 ? |