PP-DocLayoutV3
document layout analysis module
2 min readupdated
This model analyzes document structure, even on complex or distorted surfaces like screen photos and crumpled paper. Unlike standard methods, it predicts multi-point bounding polygons instead of simple rectangles and determines the logical reading order in a single pass. Built as a core component for PaddleOCR-VL and GLM-OCR, it is aimed at developers and researchers working on high-precision text recognition and real-world document parsing.
Key features
- Predicts multi-point bounding boxes for layout elements instead of standard two-point boxes.
- Determines logical reading order for curved and skewed surfaces in a single pass.
- Cuts down on cascading errors when processing complex, non-planar document images.
- Integrates with modern vision-language systems like PaddleOCR-VL.
What you can do
- Run the model via the transformers library to analyze the structure and layout of scanned documents.
- Extract text in the proper logical reading order from photos of tilted pages or curved surfaces.
- Plug it into document processing pipelines to accurately detect tables, headings, and paragraphs.
Example
import requests
from PIL import Image
from transformers import AutoImageProcessor, AutoModelForObjectDetection
model_path = "123explorer/pp-doclayoutv3"
model = AutoModelForObjectDetection.from_pretrained(model_path)
image_processor = AutoImageProcessor.from_pretrained(model_path)
image = Image.open(requests.get("[https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/layout_demo.jpg](https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/layout_demo.jpg)", stream=True).raw)
inputs = image_processor(images=image, return_tensors="pt")
outputs = model(**inputs)
results = image_processor.post_process_object_detection(outputs, target_sizes=[image.size[::-1]])
Read more
DetailsLibrary: transformers
Task: object-detection
Accepted at ECCV 2026
Supports multilingual documents










Comments