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
Declare PaddleOCR library for ONNX download tracking
#1
by ChengCui - opened
The 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.