TencentCloud / tencentcloud-sdk-python

Tencent Cloud API 3.0 SDK for Python
Apache License 2.0
616 stars 251 forks source link

OCR的示例是 ImageURL, 可否提供ImageBase64的做法? #109

Closed viponedream closed 3 years ago

viponedream commented 3 years ago
req = models.GeneralFastOCRRequest()
req.ImageUrl = "https://mc.qcloudimg.com/static/img/6d4f1676deba26377d4303a462ca5074/image.png"
resp = client.GeneralFastOCR(req)
print(resp.to_json_string())

有时需要本地文件.而不是远程的url, 谢谢。

zqfan commented 3 years ago

重复问题