收藏
回答

OCR fail decode image failed hint

云函数中调用返回错误

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"
}


回答关注问题邀请回答
收藏

3 个回答

  • 王很
    王很
    2023-06-17

    我是这个问题

    {

        "code": 0,

        "msg": "微信 POST 请求发生错误!错误代码:101002,说明:decode image failed hint: [dKYyiA0055w972] rid: 648cf7b7-3e8830ef-7b526858",

        "voiceMsg": null,

        "data": []

    }


    2023-06-17
    有用
    回复
  • 阳光明媚
    阳光明媚
    2022-06-08

    我也碰到这个问题了,传的img_url是一个可以打开的图片链接,返回

    {

    "errcode ":101002,

    "errmsg ":"decode image failed hint: [EXDCFa0660w512] rid: 62 a0492c - 211 f6d38 - 42 d6f858 "}

    2022-06-08
    有用
    回复
  • name null
    name null
    2022-05-29

    楼主你解决了吗?

    我是开发工具里选图片上传识别没问题,手机上扫码调试,然后选相册图片,就报这个错

     decode image failed hint
    


    2022-05-29
    有用
    回复
登录 后发表内容