ONNX Model Zoo

marsena/paddleocr-onnx-models

By marsena · ↓ 0 · ♥ 9 · Updated 2025-09-01

What's in this repo

This page lists the files in marsena/paddleocr-onnx-models, including PP-LCNet_x1_0_doc_ori_infer.onnx, PP-LCNet_x1_0_textline_ori_infer.onnx, PP-OCRv5_server_det_infer.onnx and more.

  • 5 ONNX models (.onnx files)
  • 8 files, including 5 .onnx, 1 .yml, 1 .md
  • Last updated 2025-09-01

ONNX files

File Size Download
PP-LCNet_x1_0_doc_ori_infer.onnx — Download
PP-LCNet_x1_0_textline_ori_infer.onnx — Download
PP-OCRv5_server_det_infer.onnx — Download
PP-OCRv5_server_rec_infer.onnx — Download
UVDoc_infer.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

PaddleOCR ONNX Models

PaddleOCR PP-OCRv5 models converted to ONNX format for efficient OCR inference.

English | 中文說明

中文說明

這是 PaddleOCR PP-OCRv5 模型的 ONNX 格式版本,用於高效率的文字辨識推理。

模型檔案說明

檔案名稱 說明
PP-OCRv5_server_det_infer.onnx 文字檢測模型 - 偵測圖片中文字的位置
PP-OCRv5_server_rec_infer.onnx 文字辨識模型 - 辨識文字內容
PP-LCNet_x1_0_textline_ori_infer.onnx 文字方向分類模型
PP-LCNet_x1_0_doc_ori_infer.onnx 文件方向修正模型
UVDoc_infer.onnx 文件展平模型
PP-OCRv5_server_rec_infer.yml 字符字典配置檔

快速使用

from huggingface_hub import hf_hub_download

# 下載文字檢測模型
det_model_path = hf_hub_download(
    repo_id="marsena/paddleocr-onnx-models",
    filename="PP-OCRv5_server_det_infer.onnx"
)

# 下載文字辨識模型  
rec_model_path = hf_hub_download(
    repo_id="marsena/paddleocr-onnx-models",
    filename="PP-OCRv5_server_rec_infer.onnx"
)

一次下載所有模型

from huggingface_hub import snapshot_download

# 下載所有模型檔案到本地資料夾
snapshot_download(
    repo_id="marsena/paddleocr-onnx-models",
    local_dir="./paddleocr_onnx"
)

支援的語言和文字類型

  • 語言支援: 簡體中文、繁體中文、英文、日文
  • 文字類型: 印刷體、手寫體、直書文字、旋轉文字、彎曲文字
  • 輸入格式: 圖片檔案 (JPEG, PNG)
  • 運行環境: 支援 CPU 和 GPU 推理

English

Model Files

File Description
PP-OCRv5_server_det_infer.onnx Text detection model
PP-OCRv5_server_rec_infer.onnx Text recognition model
PP-LCNet_x1_0_textline_ori_infer.onnx Text orientation classification
PP-LCNet_x1_0_doc_ori_infer.onnx Document orientation correction
UVDoc_infer.onnx Document unwarping
PP-OCRv5_server_rec_infer.yml Character dictionary config

Source Models

These ONNX models are converted from official PaddlePaddle PP-OCRv5 models:

Usage

Download Specific Model

from huggingface_hub import hf_hub_download

# Download detection model
det_model_path = hf_hub_download(
    repo_id="marsena/paddleocr-onnx-models",
    filename="PP-OCRv5_server_det_infer.onnx"
)

# Download recognition model  
rec_model_path = hf_hub_download(
    repo_id="marsena/paddleocr-onnx-models",
    filename="PP-OCRv5_server_rec_infer.onnx"
)

Download All Models

from huggingface_hub import snapshot_download

# Download all model files to local directory
snapshot_download(
    repo_id="marsena/paddleocr-onnx-models",
    local_dir="./paddleocr_onnx"
)

ONNX Runtime Inference

import onnxruntime as ort
import numpy as np

# Load model
session = ort.InferenceSession("PP-OCRv5_server_det_infer.onnx")

# Run inference
input_name = session.get_inputs()[0].name
output = session.run(None, {input_name: input_data})

Model Specifications

  • Languages: Simplified Chinese, Traditional Chinese, English, Japanese
  • Text Types: Printed text, handwriting, vertical text, rotated text
  • Input Format: Images (JPEG, PNG)
  • Output Format: Bounding boxes + recognized text
  • Runtime: ONNX Runtime 1.16+
  • Hardware: CPU and GPU inference supported

License

These models follow the Apache License 2.0, consistent with the original PaddleOCR project.

  • PaddleOCR Repository: https://github.com/PaddlePaddle/PaddleOCR
  • License Details: Apache License 2.0

Conversion Information

  • Conversion Tool: Paddle2ONNX
  • ONNX Version: 1.12+
  • Source Framework: PaddlePaddle 2.5+
  • Conversion Date: January 2025

Citation

If you use these models in your research, please cite the original PaddleOCR paper:

@misc{paddleocr2020,
    title={PaddleOCR: Awesome multilingual OCR toolkits},
    author={PaddlePaddle Authors},
    howpublished = {\url{https://github.com/PaddlePaddle/PaddleOCR}},
    year={2020}
}

Issues

For model usage issues, please report to the original PaddleOCR repository:

  • PaddleOCR Issues: https://github.com/PaddlePaddle/PaddleOCR/issues

Model info

image-to-text onnxruntime
onnxruntime onnx paddleocr ocr computer-vision text-recognition text-detection image-to-text base_model:PaddlePaddle/PP-OCRv5_server_det base_model:quantized:PaddlePaddle/PP-OCRv5_server_det license:apache-2.0 region:us
↓ 0 ♥ 9

Created: 2025-09-01

Updated: 2025-09-01

View on Hugging Face

Files (8)

.gitattributes
PP-LCNet_x1_0_doc_ori_infer.onnx ONNX
PP-LCNet_x1_0_textline_ori_infer.onnx ONNX
PP-OCRv5_server_det_infer.onnx ONNX
PP-OCRv5_server_rec_infer.onnx ONNX
PP-OCRv5_server_rec_infer.yml
README.md
UVDoc_infer.onnx ONNX

Related models