Object Detection
PaddleOCR
ONNX
English
Chinese
multilingual
PaddlePaddle
ocr
layout
layout_detection
reading_order
Instructions to use PaddlePaddle/PP-DocLayoutV4_onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocLayoutV4_onnx with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import LayoutDetection model = LayoutDetection(model_name="PP-DocLayoutV4_onnx") 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
Commit History
24 days ago
-
Declare PaddleOCR library for ONNX download tracking
Verified signatureThe model card currently has no library_name, so the Hub does not associate this repository with the PaddleOCR download-counting rule. Add library_name: PaddleOCR to the YAML metadata. Hugging Face's PaddleOCR rule explicitly counts the root inference.onnx file that is already present in this repository. Only model card metadata changes; the license and model files are preserved. References: - https://huggingface.co/docs/hub/model-cards#specifying-a-library - https://huggingface.co/docs/hub/models-download-stats - https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts This PR is left open for maintainer review.840aa2f
-
Update ONNX from latest PP-DocLayoutV4 static model
Verified signatureConverted with PaddlePaddle 3.2.1 and Paddle2ONNX 2.1.0, opset 16, with constant folding. ONNX SHA256: 96d1b7d0184221035cd6b9db8a879cb4ffd2ef36072e0d474f78b71d38a71c07 ONNX checker and CPU inference passed. Single-image comparison against Paddle: maximum aligned coordinate error 0.00464 pixels; two near-tied low-confidence candidates exchange rank.806ec80
-
Add PP-DocLayoutV4 ONNX model (paddle2onnx 1.3.1, opset 16)
Verified signature1c34c89 -
initial commit
Verified signaturea68b96e