Instructions to use PaddlePaddle/PP-OCRv6_medium_det with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-OCRv6_medium_det with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import TextDetection model = TextDetection(model_name="PP-OCRv6_medium_det") output = model.predict(input="path/to/image.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") - Notebooks
- Google Colab
- Kaggle
Inference speed
#1
by johnlockejrr - opened
Thanks for the kind words! Our PaddlePaddle/PP-OCRv6_tiny_det can run even faster, and you can even try deploying it on MCUs. Welcome to test it out on various edge devices!
And I wasn't very exact in my post above and the image. That is not just OCRv6_medium_det alone, is PP-DocLayoutV3 -> PP-OCRv6_medium_det, 570 pages in just a little over a minute!
Thanks for the support! I'll be sharing more deep dives and behind-the-scenes stories about Baidu OCR on my X account. Feel free to follow along here: https://x.com/slimcat0101
