# _*_coding:utf-8_*_
# 多行注释快捷键 Ctrl+/

from Imooc_selenium.ShowapiRequest import ShowapiRequest

# image = Image.open('D:/F/code.png')
# text = pytesseract.image_to_string(image)

r = ShowapiRequest("http://route.showapi.com/184-5", "81045", "0a36242999594aa4a28ef6d9540180bf")
r.addBodyPara("img_base64", "")
r.addBodyPara("typeId", "35")
r.addFilePara("image", r"D:/F/code.png")  # 文件上传时设置
res = r.post()
# text = res.json()['showapi_res_body']['Result']
print(res.text)  # 返回信息

872c14320599c287597b6f962c1a9bc92ee5dca4
<mask token>

<mask token>
r.addBodyPara('img_base64', '')
r.addBodyPara('typeId', '35')
r.addFilePara('image', 'D:/F/code.png')
<mask token>
print(res.text)

<mask token>
r = ShowapiRequest('http://route.showapi.com/184-5', '81045',
    '0a36242999594aa4a28ef6d9540180bf')
r.addBodyPara('img_base64', '')
r.addBodyPara('typeId', '35')
r.addFilePara('image', 'D:/F/code.png')
res = r.post()
print(res.text)

from Imooc_selenium.ShowapiRequest import ShowapiRequest
r = ShowapiRequest('http://route.showapi.com/184-5', '81045',
    '0a36242999594aa4a28ef6d9540180bf')
r.addBodyPara('img_base64', '')
r.addBodyPara('typeId', '35')
r.addFilePara('image', 'D:/F/code.png')
res = r.post()
print(res.text)

# _*_coding:utf-8_*_
# 多行注释快捷键 Ctrl+/

from Imooc_selenium.ShowapiRequest import ShowapiRequest

# image = Image.open('D:/F/code.png')
# text = pytesseract.image_to_string(image)

r = ShowapiRequest("http://route.showapi.com/184-5", "81045", "0a36242999594aa4a28ef6d9540180bf")
r.addBodyPara("img_base64", "")
r.addBodyPara("typeId", "35")
r.addFilePara("image", r"D:/F/code.png")  # 文件上传时设置
res = r.post()
# text = res.json()['showapi_res_body']['Result']
print(res.text)  # 返回信息
