Downloads · 30 days
0
marsena/paddleocr-onnx-models
paddleocr-onnx-models is a image-to-text model from marsena. Use it when you need a caption or text from an image. It is set up for onnxruntime. The card lists the license as apache-2.0.
PaddleOCR PP-OCRv5 models converted to ONNX format for efficient OCR inference.
Downloads · 30 days
0
Access
Public
Updated Sep 1, 2025
Repo size
218 MB
Likes
13
Public
Click a slice to open those files.
.onnx218 MB · 100%
From the Hugging Face model README
PaddleOCR PP-OCRv5 models converted to ONNX format for efficient OCR inference.
這是 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"
)
| 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 |
These ONNX models are converted from official PaddlePaddle PP-OCRv5 models:
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"
)
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"
)
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})
These models follow the Apache License 2.0, consistent with the original PaddleOCR project.
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}
}
For model usage issues, please report to the original PaddleOCR repository: