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

predict_system源码bug,在docker build中如何修改 #12008

Closed xiaocode337317439 closed 2 weeks ago

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

Originally posted by @sugarandgugu in https://github.com/PaddlePaddle/PaddleOCR/issues/11997#issuecomment-2076268813

changdazhou commented 3 weeks ago

可以在dockerfile当中增加sed命令实现代码替换哈