Replies: 2 comments
-
看着可能是安装的不对,请确保使用的是的3.0.0版本的paddleocr和paddlex |
Beta Was this translation helpful? Give feedback.
0 replies
-
PaddleOCR 3.2 版本已发布,支持 OCR 产线 C++ 本地部署方案,功能及精度效果与 Python 方案保持一致。欢迎体验: 通用 OCR 产线 C++ 部署 - Linux 如果在使用过程中有任何问题,欢迎提 issue,我们会及时跟进并解决! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
请问如何在C++中使用PP-OCRv5模型,推理库用3.0
https://github.com/PaddlePaddle/PaddleOCR/tree/main/deploy/cpp_infer
提示:Error: PP-OCRv5_mobile_det is currently not supported.
另外Python中执行代码会提示:
AssertionError: The model (PP-OCRv5_mobile_det_infer) is not supported! Please using directory of local model files or model name supported by PaddleX!
`
from paddleocr import PaddleOCR
ocr = PaddleOCR(
text_detection_model_name="PP-OCRv5_mobile_det_infer",
text_recognition_model_name="PP-OCRv5_mobile_rec_infer",
use_doc_orientation_classify=False, # 通过 use_doc_orientation_classify 参数指定不使用文档方向分类模型
use_doc_unwarping=False, # 通过 use_doc_unwarping 参数指定不使用文本图像矫正模型
use_textline_orientation=False, # 通过 use_textline_orientation 参数指定不使用文本行方向分类模型
device="gpu:0"
)
result = ocr.predict("./text.jpg")
for res in result:
res.print()
res.save_to_img("output")
res.save_to_json("output")
`
Beta Was this translation helpful? Give feedback.
All reactions