如何指定PP-OCRv5_server_rec? #15425
Replies: 3 comments 2 replies
-
(paddle) mazz@node63:~/PaddleOCR$ python3 simocr.py |
Beta Was this translation helpful? Give feedback.
-
如果将model_name改成PP-OCRv4_server_rec,可以正常运行。 |
Beta Was this translation helpful? Give feedback.
-
删除并重装conda环境,删除并重新clone代码仓库,问题解决。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
from paddleocr import TextRecognition
model = TextRecognition(model_name="PP-OCRv5_server_rec")
output = model.predict(input="general_ocr_rec_001.png", batch_size=1)
for res in output:
res.print()
res.save_to_img(save_path="./output/")
res.save_to_json(save_path="./output/res.json")
Beta Was this translation helpful? Give feedback.
All reactions