classifierId
KbarClib 发布于2020-06 浏览:1401 回复:2
0
收藏
快速回复
最后编辑于2022-04

{"data":{"isStructured":false,"logId":"159115066351925"},"error_code":216100,"error_msg":"invalid param, classifierId is not number, please check your param","log_id":"159115066351925"}

classifierId 在哪里丫 

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3KbarClib回复于2020-06

谢谢,解决了,但是这个你们看看要不要优化一下

0
#2用户已被禁言回复于2020-06

你做了分类器才会有classifierId

https://ai.baidu.com/ai-doc/OCR/3k3h7yeqa#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A8%A1%E6%9D%BF%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB 官方文档示例代码

和你的有点区别哦 第二个参数是个KV的集合。不知道python术语叫什么

//额外的参数
options = {}
//key固定为templateSign 后面给页面提供的 模板ID(templateSign) 的值即可
options["templateSign"] = ""
# 调用自定义模板文字识别
result = client.custom(image, options);
print(result)
1
TOP
切换版块