Home
Sign Up
Sign In
jerryliang's recent timeline updates
jerryliang
V2EX member #488767, joined on 2020-05-10 22:49:00 +08:00
jerryliang
提问
技术话题
好玩
工作信息
交易信息
城市相关
求助腾讯云 API 编写
Python
•
jerryliang
•
May 14, 2020
• Lastly replied by
jerryliang
2
»
More topics by jerryliang
jerryliang's recent replies
May 14, 2020
Replied to a topic by
jerryliang
›
Python
›
求助腾讯云 API 编写
@
ClericPy
嗯,自己 print 了 params 。是一个 str 的类型,故使用字符串拼接的方式把它拼接了,然后就搞定了
with open("1.jpg","rb") as f:
base64_data = base64.b64encode(f.read())
#print(base64_data)
#print(type(base64_data))
req = models.GeneralBasicOCRRequest()
a = "{\"ImageBase64\":\""
b = "\"}"
params = a + base64_data + b
»
More replies by jerryliang
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5565 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms ·
UTC 06:31
·
PVG 14:31
·
LAX 23:31
·
JFK 02:31
♥ Do have faith in what you're doing.
❯