Skip to content
ModelListedExternal
Browse files

Paddleocr

model-distribution-disclaimer-license

KindModelVersionModelCgrade

Model source

Kind
Model
File size
1.74–108 MB
Version
vModel
Updated
Oct 30, 2026
Source
Hugging Face

Source description

PaddleOCR ONNX Models

Summary

This repository provides ONNX-format implementations of PaddleOCR models, offering comprehensive optical character recognition capabilities for multilingual text detection and recognition. The models are exported from the original PaddleOCR framework and optimized for efficient inference across various deployment scenarios.

The repository contains two main types of models: text detection models that identify text regions in images, and text recognition models that convert detected text regions into actual text content. The detection models utilize advanced segmentation-based approaches with post-processing techniques including contour detection, polygon approximation, and score thresholding to accurately localize text regions with high precision.

For text recognition, the models support multiple languages including Chinese, English, Japanese, Korean, Arabic, Cyrillic, Devanagari, and several other scripts. Each recognition model comes with its own character dictionary (dict.txt) tailored to the specific language or script family. The recognition pipeline handles text normalization, feature extraction, and sequence decoding to produce accurate text transcriptions with confidence scores.

The models are designed with practical deployment in mind, offering various versions optimized for different use cases - from lightweight mobile applications to high-accuracy server deployments. Key features include support for rotated text detection, duplicate character removal, and configurable confidence thresholds for balancing precision and recall in real-world applications.

Usage

The models can be easily used through the dghs-imgutils library:

# Installation
pip install dghs-imgutils
# Basic OCR usage
from imgutils.ocr import ocr, list_det_models, list_rec_models

# List available models
print("Detection models:", list_det_models())
print("Recognition models:", list_rec_models())

# Perform OCR on an image
results = ocr('your_image.jpg')
for bbox, text, confidence in results:
    print(f"Text: {text}, Confidence: {confidence:.4f}, BBox: {bbox}")

# Custom model selection
results = ocr('your_image.jpg', 
              detect_model='ch_PP-OCRv4_det',
              recognize_model='japan_PP-OCRv3_rec')
# Text detection only
from imgutils.ocr import detect_text_with_ocr

# Detect text regions without recognition
detections = detect_text_with_ocr('your_image.jpg')
for bbox, label, confidence in detections:
    print(f"BBox: {bbox}, Confidence: {confidence:.4f}")

Available Models

Text Detection Models

  • ch_PP-OCRv2_det - Chinese text detection v2
  • ch_PP-OCRv3_det - Chinese text detection v3
  • ch_PP-OCRv4_det - Chinese text detection v4
  • ch_PP-OCRv4_server_det - Server-optimized Chinese detection v4
  • ch_ppocr_mobile_slim_v2.0_det - Lightweight mobile detection
  • ch_ppocr_mobile_v2.0_det - Mobile-optimized detection
  • ch_ppocr_server_v2.0_det - Server-optimized detection
  • en_PP-OCRv3_det - English text detection

Text Recognition Models

  • arabic_PP-OCRv3_rec - Arabic text recognition
  • ch_PP-OCRv2_rec - Chinese text recognition v2
  • ch_PP-OCRv3_rec - Chinese text recognition v3
  • ch_PP-OCRv4_rec - Chinese text recognition v4
  • ch_PP-OCRv4_server_rec - Server-optimized Chinese recognition v4
  • ch_ppocr_mobile_v2.0_rec - Mobile-optimized Chinese recognition
  • ch_ppocr_server_v2.0_rec - Server-optimized Chinese recognition
  • chinese_cht_PP-OCRv3_rec - Traditional Chinese recognition
  • cyrillic_PP-OCRv3_rec - Cyrillic script recognition
  • devanagari_PP-OCRv3_rec - Devanagari script recognition
  • en_PP-OCRv3_rec - English text recognition v3
  • en_PP-OCRv4_rec - English text recognition v4
  • en_number_mobile_v2.0_rec - Mobile-optimized number recognition
  • japan_PP-OCRv3_rec - Japanese text recognition
  • ka_PP-OCRv3_rec - Kannada text recognition
  • korean_PP-OCRv3_rec - Korean text recognition
  • latin_PP-OCRv3_rec - Latin script recognition
  • ta_PP-OCRv3_rec - Tamil text recognition
  • te_PP-OCRv3_rec - Telugu text recognition

Model Configuration

The OCR pipeline supports several configurable parameters:

  • heat_threshold: Heat map threshold for text detection (default: 0.3)
  • box_threshold: Box confidence threshold (default: 0.7)
  • max_candidates: Maximum number of text candidates (default: 1000)
  • unclip_ratio: Expansion ratio for detected boxes (default: 2.0)
  • rotation_threshold: Aspect ratio threshold for rotation detection (default: 1.5)
  • is_remove_duplicate: Whether to remove duplicate characters (default: False)

Performance Notes

  • The default detection model ch_PP-OCRv4_det provides excellent balance of accuracy and speed
  • The default recognition model ch_PP-OCRv4_rec supports both Chinese and English with high accuracy
  • For specific languages, choose the corresponding recognition model for optimal results
  • Server versions generally offer higher accuracy at the cost of increased computational requirements
  • Mobile versions are optimized for speed and resource efficiency

Original Content

Onnx version of PaddleOCR.

Citation

@misc{paddleocr_onnx,
  title        = {{PaddleOCR ONNX Models}},
  author       = {PaddlePaddle and Repository Contributors},
  howpublished = {\url{https://huggingface.co/deepghs/paddleocr}},
  year         = {2023},
  note         = {ONNX-format implementations of PaddleOCR models for multilingual text detection and recognition},
  abstract     = {This repository provides ONNX-format implementations of PaddleOCR models, offering comprehensive optical character recognition capabilities for multilingual text detection and recognition. The models are exported from the original PaddleOCR framework and optimized for efficient inference across various deployment scenarios. The repository contains text detection models that identify text regions in images and text recognition models that convert detected text regions into actual text content, supporting multiple languages including Chinese, English, Japanese, Korean, Arabic, Cyrillic, Devanagari, and several other scripts.},
  keywords     = {OCR, text-detection, text-recognition, multilingual, ONNX}
}

Sources

1 source
Hugging FacePrimaryVersion 91ecfd08aa6a63d06800b742e006ca892238a42a
huggingface.co/Library-Mutsumi/paddleocr/tree/91ecfd08aa6a63d06800b742e006ca892238a42a

Verified Oct 30

Download files

Model artifacts

27 artifacts

det/ch_PP-OCRv2_det/model.onnx

onnx · 2.24 MB · SHA-256 9a43d413886d…e242 · Hugging Face

Download file

det/ch_PP-OCRv3_det/model.onnx

onnx · 2.32 MB · SHA-256 ab24b4a00028…4ba0 · Hugging Face

Download file

det/ch_PP-OCRv4_det/model.onnx

onnx · 4.53 MB · SHA-256 30a86f573118…cdff · Hugging Face

Download file

det/ch_PP-OCRv4_server_det/model.onnx

onnx · 108 MB · SHA-256 fbff8d15a21e…5d95 · Hugging Face

Download file

det/ch_ppocr_mobile_slim_v2.0_det/model.onnx

onnx · 1.74 MB · SHA-256 e85ea38915c7…c878 · Hugging Face

Download file

det/ch_ppocr_mobile_v2.0_det/model.onnx

onnx · 2.24 MB · SHA-256 78fc00d1dc27…29ab · Hugging Face

Download file

det/ch_ppocr_server_v2.0_det/model.onnx

onnx · 46.6 MB · SHA-256 ffe9717ac127…ed9d · Hugging Face

Download file

det/en_PP-OCRv3_det/model.onnx

onnx · 2.32 MB · SHA-256 69d10a2f151e…f1f9 · Hugging Face

Download file

rec/arabic_PP-OCRv3_rec/model.onnx

onnx · 8.57 MB · SHA-256 1be9c242e6f4…74c0 · Hugging Face

Download file

rec/ch_PP-OCRv2_rec/model.onnx

onnx · 7.98 MB · SHA-256 9bb4a3e53c8e…b2b8 · Hugging Face

Download file

rec/ch_PP-OCRv3_rec/model.onnx

onnx · 10.2 MB · SHA-256 fd78da016159…1e4b · Hugging Face

Download file

rec/ch_PP-OCRv4_rec/model.onnx

onnx · 10.3 MB · SHA-256 1c7cf60de2af…a68b · Hugging Face

Download file

rec/ch_PP-OCRv4_server_rec/model.onnx

onnx · 86.3 MB · SHA-256 12832e70fef8…c34c · Hugging Face

Download file

rec/ch_ppocr_mobile_v2.0_rec/model.onnx

onnx · 4.21 MB · SHA-256 0e9b1324d4ed…4680 · Hugging Face

Download file

rec/ch_ppocr_server_v2.0_rec/model.onnx

onnx · 106 MB · SHA-256 2091789e9b49…6010 · Hugging Face

Download file

rec/chinese_cht_PP-OCRv3_rec/model.onnx

onnx · 10.6 MB · SHA-256 e9c18904f7e9…46d3 · Hugging Face

Download file

rec/cyrillic_PP-OCRv3_rec/model.onnx

onnx · 8.57 MB · SHA-256 befb0c18a564…3f31 · Hugging Face

Download file

rec/devanagari_PP-OCRv3_rec/model.onnx

onnx · 8.57 MB · SHA-256 5a402cae34f8…8c69 · Hugging Face

Download file

rec/en_number_mobile_v2.0_rec/model.onnx

onnx · 1.80 MB · SHA-256 03bfb4f083d1…b262 · Hugging Face

Download file

rec/en_PP-OCRv3_rec/model.onnx

onnx · 8.55 MB · SHA-256 18fae12e175a…3f49 · Hugging Face

Download file

rec/en_PP-OCRv4_rec/model.onnx

onnx · 7.31 MB · SHA-256 870d81b658bb…0959 · Hugging Face

Download file

rec/japan_PP-OCRv3_rec/model.onnx

onnx · 9.62 MB · SHA-256 37ab0d0c32a2…2935 · Hugging Face

Download file

rec/ka_PP-OCRv3_rec/model.onnx

onnx · 8.57 MB · SHA-256 52a75cdf8608…f958 · Hugging Face

Download file

rec/korean_PP-OCRv3_rec/model.onnx

onnx · 9.44 MB · SHA-256 a24c96b1cace…c18a · Hugging Face

Download file

rec/latin_PP-OCRv3_rec/model.onnx

onnx · 8.57 MB · SHA-256 f26feb219f30…d0ad · Hugging Face

Download file

rec/ta_PP-OCRv3_rec/model.onnx

onnx · 8.56 MB · SHA-256 0efe02168a23…6d38 · Hugging Face

Download file

rec/te_PP-OCRv3_rec/model.onnx

onnx · 8.56 MB · SHA-256 974705f1c3e4…711a · Hugging Face

Download file

Source excerpts

2 excerpts

--- pipeline_tag: image-to-text tags: - ocr - text-detection - text-recognition - onnx - computer-vision - multilingual license: other license_name: model-distribution-disclaimer-license license_link: https://huggingface.co/spaces/deepghs/RDLicence library_name: dghs-imgutils --- # PaddleOCR ONNX Models ## Summary This repository provides **ONNX-format** implementations of **PaddleOCR** models, offering comprehensive **optical character recognition** capabilities for multilingual text detection and recognition. The models are exported from the original [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR) framework and optimized for efficient inference across various deployment scenarios. The repository contains two main types of models: **text detection** models that identify text regions in images, and **text recognition** models that convert detected text regions into actual text content. The detection models utilize advanced segmentation-based approaches with post-processing techniques including contour detection, polygon approximation, and score thresholding to accurately localize text regions with high precision. For text recognition, the models support **multiple languages** including Chinese, English, Japanese, Korean, Arabic, Cyrillic, Devanagari, and several other scripts. Each recognition model comes with its own character dictionary (`dict.txt`) tailored to the specific language or script family. The recognition pipeline handles text normalization, feature extraction, and sequence decoding to produce accurate text transcriptions with confidence scores. The models are designed with **practical deployment** in mind, offering various versions optimized for different use cases - from lightweight mobile applications to high-accuracy server deployments. Key features include support for rotated text detection, duplicate character removal, and configurable confidence thresholds for balancing precision and recall in real-world applications. ## Usage The models can be easily used through the `dghs-imgutils` library: ```bash # Installation pip install dghs-imgutils ``` ```python # Basic OCR usage from imgutils.ocr import ocr, list_det_models, list_rec_models # List available models print("Detection models:", list_det_models()) print("Recognition models:", list_rec_models()) # Perform OCR on an image results = ocr('your_image.jpg') for bbox,...

Source context: 0 downloads · 0 likes · Pipeline image-to-text · Library dghs-imgutils · Repo Library-Mutsumi/paddleocr