云函数中调用返回错误
const imgUrl = 'https://7072-prod-1gkqwpwa5ccfb4a0-1306499989.tcb.qcloud.la/order-pay/18ed0968619bab5106b3a50a32fb0e6f-1653408493081.png'
cloud.openapi.ocr.printedText({ type: 'photo', imgUrl })
{
"errCode": 101002,
"errMsg": "openapi.ocr.printedText:fail decode image failed hint: [SvkjFa0494w972] rid: 628d02ee-4360b55c-32945d61"
}
我是这个问题
{
"code": 0,
"msg": "微信 POST 请求发生错误!错误代码:101002,说明:decode image failed hint: [dKYyiA0055w972] rid: 648cf7b7-3e8830ef-7b526858",
"voiceMsg": null,
"data": []
}
我也碰到这个问题了,传的img_url是一个可以打开的图片链接,返回
{
"errcode ":101002,
"errmsg ":"decode image failed hint: [EXDCFa0660w512] rid: 62 a0492c - 211 f6d38 - 42 d6f858 "}
楼主你解决了吗?
我是开发工具里选图片上传识别没问题,手机上扫码调试,然后选相册图片,就报这个错