Object Detection
PaddleOCR
English
Chinese
multilingual
PaddlePaddle
ocr
layout
layout_detection
reading_order
Instructions to use PaddlePaddle/PP-DocLayoutV4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocLayoutV4 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") 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
Update geometry-enabled PP-DocLayoutV4 Paddle inference export
Browse filesUpdate the Paddle 3 PIR graph, weights and inference configuration together. Remove the incompatible legacy graph and auxiliary metadata. Keep README unchanged.
Files changed (5)
- inference.jsonAdded
- inference.pdiparams+2-2
- inference.pdiparams.infoDeleted
- inference.pdmodelDeleted-3
- inference.yml-7
123version https://git-lfs.github.com/spec/v1oid sha256:0f5dae24a5226fecf0ee029af71be63db1bc22c83fa01b73e147377a50cb3fe9size 130354820123version https://git-lfs.github.com/spec/v1oid sha256:cdeef511851c7b93770741679e15d58e5d53e3ce58055ef220d0e8187d4df08asize 132771206
123version https://git-lfs.github.com/spec/v1oid sha256:a528069ffd23192add866084b5b63d84db584b430acdb2dce1ba5eaa91b02dd0size 99430553 unmodified lines5455565758596061626364656653 unmodified linesbackend_configs:paddle_infer:trt_dynamic_shapes: &id001im_shape:- - 1- 2- - 1- 2- - 8- 2image:- - 1- 353 unmodified lines54555657585953 unmodified linesbackend_configs:paddle_infer:trt_dynamic_shapes: &id001image:- - 1- 3
inference.jsonAdded
inference.pdiparams+2-2
inference.pdiparams.infoDeleted
inference.pdmodelDeleted-3
inference.yml-7