Model reference · open weights

PP-LCNet_x0_25_textline_ori_onnx

LLMs PaddlePaddle Image→text 1 build Open weights 642 dl/mo

PP-LCNet_x0_25_textline_ori_onnx is an open-weight language model from Baidu.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • PP-LCNet_x0_25_textline_ori_onnx is an image-to-text model developed by Baidu and published under the PaddlePaddle repository.
  • It is designed to classify and correct the orientation of text lines in images, which helps standard OCR pipelines process documents captured at various angles.
  • The model supports English and Chinese languages and is distributed under the Apache-2.0 license.

Summary of the PaddlePaddle/PP-LCNet_x0_25_textline_ori_onnx model card, 2026-10-01

What it is

Released byBaidu
Released2026-05-26

From the model card

What Baidu says about PP-LCNet_x0_25_textline_ori_onnx

Read the model card

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:

Model Usage

Install Dependencies

pip install -U paddleocr
pip install -U onnxruntime-gpu

CLI Usage

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

Python API Usage

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")

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms