问题描述
当前,我正在使用2.1版的表单识别器预览来训练自定义模型。我能够在Form Recognizer标签工具中测试模型并获得输出。当我在程序中输入与标签工具中相同的文件时,出现以下错误。
{"status": "failed","createdDateTime": "2020-09-25T20:03:21Z","lastUpdatedDateTime": "2020-09-25T20:03:21Z","analyzeResult": {"version": "2.1.0","errors": [{"code": "2005","message": "The file submitted couldn't be parsed. This can be due to one of the following reasons: the file format is not supported ( Supported formats include JPEG,PNG,BMP,PDF and TIFF),the file is corrupted or password protected."}]}}
使用的GET请求代码为:
resp = requests.get(url=get_url,headers={"Ocp-Apim-Subscription-Key":FORM_RECOGNIZER_SUBSCRIPTION_KEY})
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)