下载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
浙公网安备 33010602011771号