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

# PP-LCNet_x0_25_textline_ori_onnx

> PP-LCNet_x0_25_textline_ori_onnx - PaddlePaddle 在 ModelScope 开源的模型。PP-LCNetx025textlineori

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

- **Repository**: PaddlePaddle/PP-LCNet_x0_25_textline_ori_onnx
- **License**: apache-2.0
- **Tags**: OCR, PaddlePaddle, PaddleOCR, textline_orientation_classification
- **Downloads**: 49
- **Stars**: 0
- **Last updated**: 2026-06-12

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

---

# PP-LCNet_x0_25_textline_ori

## Introduction

The text line orientation classification module primarily distinguishes the orientation of text lines and corrects them using post-processing. In processes such as document scanning and license/certificate photography, to capture clearer images, the capture device may be rotated, resulting in text lines in various orientations. Standard OCR pipelines cannot handle such data well. By utilizing image classification technology, the orientation of text lines can be predetermined and adjusted, thereby enhancing 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_x0_25_textline_ori</td>
<td>98.85</td>
<td>0.96</td>
<td>Text line classification model based on PP-LCNet_x0_25, with two classes: 0 degrees and 180 degrees</td>
</tr>
</table>

## Model Usage

### Install Dependencies

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

### CLI Usage

```shell
paddleocr textline_orientation_classification -i ./demo.jpg --model_name PP-LCNet_x0_25_textline_ori --engine onnxruntime
```

### Python API Usage

```python
from paddleocr import TextLineOrientationClassification

model = TextLineOrientationClassification(
    model_name="PP-LCNet_x0_25_textline_ori",
    engine="onnxruntime",
)
output = model.predict("./demo.jpg", batch_size=1)
for res in output:
    res.print()
    res.save_to_json(save_path="./output/res.json")
```
