---
title: PP-LCNet_x1_0_doc_ori_safetensors
canonical_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors"
md_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors.md"
repository: PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors
last_updated: 2026-04-15
license: apache-2.0
model_type:
  - pp_lcnet
parameters: 1.7M
tensor_type:
  - F32
library_name:
  - transformer
  - safetensors
language:
  - en
  - zh
downloads: 2149
stars: 0
tags:
  - OCR
  - PaddlePaddle
  - PaddleOCR
  - doc_img_orientation_classification
---

# PP-LCNet_x1_0_doc_ori_safetensors

> PP-LCNet_x1_0_doc_ori_safetensors - PaddlePaddle 在 ModelScope 开源的模型。The Document Image Orientation Classification Module is primarily designed to distinguish the orientation of document images and correct them through post-processing. During processes such…

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

- **Repository**: PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors
- **License**: apache-2.0
- **Parameters**: 1.7M
- **Tags**: OCR, PaddlePaddle, PaddleOCR, doc_img_orientation_classification
- **Downloads**: 2149
- **Stars**: 0
- **Last updated**: 2026-04-15

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

---

# PP-LCNet_x1_0_doc_ori

## Introduction

The Document Image Orientation Classification Module is primarily designed to distinguish the orientation of document images and correct them through post-processing. During processes such as document scanning or ID photo capturing, the device might be rotated to achieve clearer images, resulting in images with various orientations. Standard OCR pipelines may not handle these images effectively. By leveraging image classification techniques, the orientation of documents or IDs containing text regions can be pre-determined and adjusted, thereby improving the accuracy of OCR processing. The key accuracy metrics are as follow:

<table>
<tr>
<th>Model</th>
<th>Recognition Avg Accuracy(%)</th>
<th>Model Storage Size (M)</th>
<th>Introduction</th>
</tr>
<tr>
<td>PP-LCNet_x1_0_doc_ori</td>
<td>99.06</td>
<td>7</td>
<td>A document image classification model based on PP-LCNet_x1_0, with four categories: 0°, 90°, 180°, and 270°.</td>
</tr>
</table>

## Model Usage

```python
import requests
from PIL import Image
from transformers import AutoImageProcessor, AutoModelForImageClassification

model_path = "PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors"
model = AutoModelForImageClassification.from_pretrained(model_path, device_map="auto")
image_processor = AutoImageProcessor.from_pretrained(model_path)

image = Image.open(requests.get("https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/img_rot180_demo.jpg", stream=True).raw)
inputs = image_processor(images=image, return_tensors="pt").to(model.device)
outputs = model(**inputs)
predicted_label = outputs.logits.argmax(-1).item()
print(model.config.id2label[predicted_label])
```
