PaddleOCR
PaddleOCR copied to clipboard
访问ocr_system本地部署服务报错
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
- 系统环境/System Environment:Linux
- 版本号/Version:Paddle: 2.6 PaddleOCR: 问题相关组件/Related components:
- 运行指令/Command Code:python tools/test_hubserving.py --server_url=http://127.0.0.1:8868/predict/ocr_system --image_dir=./ppstructure/docs/kie/input/ --visualize=false
- 完整报错/Complete Error Message:
[2022/09/15 17:46:55] ppocr INFO: Predict time of ./ppstructure/docs/kie/input/zh_val_0.jpg: 0.871s
Traceback (most recent call last):
File "tools/test_hubserving.py", line 157, in
main(args) File "tools/test_hubserving.py", line 119, in main res = r.json()["results"][0] IndexError: string index out of range
请问这个问题解决了吗,我也遇到同样的问题
请问解决了嘛
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
- 系统环境/System Environment:Linux
- 版本号/Version:Paddle: 2.6 PaddleOCR: 问题相关组件/Related components:
- 运行指令/Command Code:python tools/test_hubserving.py --server_url=http://127.0.0.1:8868/predict/ocr_system --image_dir=./ppstructure/docs/kie/input/ --visualize=false
- 完整报错/Complete Error Message: [2022/09/15 17:46:55] ppocr INFO: Predict time of ./ppstructure/docs/kie/input/zh_val_0.jpg: 0.871s Traceback (most recent call last): File "tools/test_hubserving.py", line 157, in main(args) File "tools/test_hubserving.py", line 119, in main res = r.json()["results"][0] IndexError: string index out of range
请问解决了嘛
请问问题解决了嘛?
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
- 系统环境/System Environment:Linux
- 版本号/Version:Paddle: 2.6 PaddleOCR: 问题相关组件/Related components:
- 运行指令/Command Code:python tools/test_hubserving.py --server_url=http://127.0.0.1:8868/predict/ocr_system --image_dir=./ppstructure/docs/kie/input/ --visualize=false
- 完整报错/Complete Error Message: [2022/09/15 17:46:55] ppocr INFO: Predict time of ./ppstructure/docs/kie/input/zh_val_0.jpg: 0.871s Traceback (most recent call last): File "tools/test_hubserving.py", line 157, in main(args) File "tools/test_hubserving.py", line 119, in main res = r.json()["results"][0] IndexError: string index out of range
请问解决了嘛
请问问题解决了嘛?
解决了,更换一下版本就好了
我是运行了 hub install ./deploy/hubserving/ocr_system/ 之后就可以了,仅供参考