首页 PaddleOCR 帖子详情
使用PaddleOCR报错
收藏
快速回复
PaddleOCR 问答OCR 376 1
使用PaddleOCR报错
收藏
快速回复
PaddleOCR 问答OCR 376 1

使用PaddleOCR报错,使用的指令是:
python tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_ppocr_mobile_v1.1_det_infer/" --rec_model_dir="./inference/ch_ppocr_mobile_v1.1_rec_infer/" --cls_model_dir="./inference/ch_ppocr_mobile_v1.1_cls_infer/" --use_angle_cls=True --use_space_char=True
报错如下:
C:\Program Files\Python37\lib\site-packages\pkg_resources\_vendor\pyparsing.py:943: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
collections.MutableMapping.register(ParseResults)
C:\Program Files\Python37\lib\site-packages\pkg_resources\_vendor\pyparsing.py:3226: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
elif isinstance( exprs, collections.Iterable ):
C:\Program Files\Python37\lib\site-packages\setuptools\depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "tools/infer/predict_system.py", line 262, in
main(args)
File "tools/infer/predict_system.py", line 140, in main
text_sys = TextSystem(args)
File "tools/infer/predict_system.py", line 46, in __init__
self.text_detector = predict_det.TextDetector(args)
File "D:\PaddleOCR-release-2.6\tools\infer\predict_det.py", line 142, in __init__
args, 'det', logger)
File "D:\PaddleOCR-release-2.6\tools\infer\utility.py", line 199, in create_predictor
model_dir))
ValueError: not find model.pdmodel or inference.pdmodel in ./inference/ch_ppocr_mobile_v1.1_det_infer/

  错误如上图所示。

或者有偿寻找帮助,指导我塔建好服务的PaddleOCR,用起来的效果是,使用接口传入图片,返回文字结果。可以的麻烦联系一下我。

0
收藏
回复
全部评论(1)
时间顺序
beyondyourself
#2 回复于2023-05

模型路径写错了,你是用的默认路径,得修改为自己的实际路径

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户