PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
38.99k stars 7.32k forks source link

NameError: name 'predict_system' is not defined #11997

Closed sugarandgugu closed 3 weeks ago

sugarandgugu commented 3 weeks ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

sugarandgugu commented 3 weeks ago

去源码里面进行修改在54行没有导入predict_system导致,可以将第54行改为如下部分,然后再报错的第576行将改成class PaddleOCR(TextSystem)即可。 from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel,TextSystem ref: https://blog.csdn.net/wang602125218/article/details/137175714

UserWangZz commented 3 weeks ago

感谢讨论,使用文档分析功能,也可以使用这个脚本ppstructure/predict_system.py哦

xiaocode337317439 commented 3 weeks ago

去源码里面进行修改在54行没有导入predict_system导致,可以将第54行改为如下部分,然后再报错的第576行将改成class PaddleOCR(TextSystem)即可。 from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel,TextSystem ref: https://blog.csdn.net/wang602125218/article/details/137175714

在docker build如何去修改?