Replies: 1 comment
-
您好,PP-OCRv5 拆分成了檢測模組和識別模組,可以參考檢測模組文檔 https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/module_usage/text_detection.html#_4,範例代碼如下: from paddleocr import TextDetection
model = TextDetection(model_name="PP-OCRv5_server_det")
output = model.predict("general_ocr_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.
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.
-
使用PP-OCRv4時可以透過如下參數設置讓模型只啟用識別模型(rec=True),不啟用檢測功能(det=False),換成PP-OCRv5時應如何設置?
試過text_detection_model_name = None無效,model.predict也不支援det及rec的設置。
Beta Was this translation helpful? Give feedback.
All reactions