下载PaddleOCR库最新版,使用报错。

paddleocr name 'predict_system' is not defined

1,paddleocr版本的问题,在Pip下载最新的Paddleocr会出现这样的问题,可以指定版本。

pip install paddleocr==2.7.0.0

2,去源码里面进行修改,在54行没有导入predict_system导致,可以修改如下部分,然后再报错的第576行改成class PaddleOCR(TextSystem)即可。

from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel,TextSystem

 

 posted on 2024-05-19 19:18  会飞的金鱼  阅读(122)  评论(0)    收藏  举报