---
title: PP-DocBlockLayout_onnx
canonical_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-DocBlockLayout_onnx"
md_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-DocBlockLayout_onnx.md"
repository: PaddlePaddle/PP-DocBlockLayout_onnx
last_updated: 2026-06-12
license: apache-2.0
library_name:
  - onnx
language:
  - en
  - zh
downloads: 140
stars: 0
tags:
  - OCR
  - PaddlePaddle
  - PaddleOCR
  - layout_detection
---

# PP-DocBlockLayout_onnx

> PP-DocBlockLayout_onnx - PaddlePaddle 在 ModelScope 开源的模型。A layout block localization model trained on a self-built dataset containing Chinese and English papers, PPT, multi-layout magazines, contracts, books, exams, ancient books and research reports using…

PaddlePaddle/PP-DocBlockLayout_onnx 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可。

- **Repository**: PaddlePaddle/PP-DocBlockLayout_onnx
- **License**: apache-2.0
- **Tags**: OCR, PaddlePaddle, PaddleOCR, layout_detection
- **Downloads**: 140
- **Stars**: 0
- **Last updated**: 2026-06-12

Source: https://www.modelscope.cn/models/PaddlePaddle/PP-DocBlockLayout_onnx

---

# PP-DocBlockLayout

## Introduction

A layout block localization model trained on a self-built dataset containing Chinese and English papers, PPT, multi-layout magazines, contracts, books, exams, ancient books and research reports using RT-DETR-L. The layout detection model includes 1 category: Region.

| Model| mAP(0.5) (%) |
|  --- | --- |
|PP-DocBlockLayout |  95.9 |

**Note**: the evaluation set of the above precision indicators is the self built version sub area detection data set, including Chinese and English papers, magazines, newspapers, research reports PPT、 1000 document type pictures such as test papers and textbooks.

## Model Usage

### Install Dependencies

```shell
pip install -U paddleocr
pip install -U onnxruntime-gpu
```

### CLI Usage

```shell
paddleocr layout_detection -i ./demo.jpg --model_name PP-DocBlockLayout --engine onnxruntime
```

### Python API Usage

```python
from paddleocr import LayoutDetection

model = LayoutDetection(
    model_name="PP-DocBlockLayout",
    engine="onnxruntime",
)
output = model.predict("./demo.jpg", 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")
```
