成功解决百度智能云图像识别组合接口API出现error_code‘: 216102,service not support问题
python
今天测试百度智能云的图像识别接口的测试代码时,调用失败
出现了
仔细观察测试代码发现
代码中用于指定本次调用的模型服务的参数scenes中,写了一个无效的参数“dishs”,
解决方法就是将dishes修改为dishs或其他有效参数
修改前:
params = "{\"imgUrl\":\"【网络图片地址】\",\"scenes\":[\"animal\",\"plant\",\"ingredient\",\"dishes\", \"red_wine\",\"currency\",\"lan
原创
2021-04-25 18:14:15 ·
2147 阅读 ·
0 评论