Paddleocr
model-distribution-disclaimer-license
Fonte do modelo
- Tipo
- Modelo
- Tamanho do arquivo
- 1,74–108 MB
- Versão
- vModel
- Atualizado
- 30 de out. de 2026
- Fonte
- Hugging Face
Descrição da fonte
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 v2ch_PP-OCRv3_det- Chinese text detection v3ch_PP-OCRv4_det- Chinese text detection v4ch_PP-OCRv4_server_det- Server-optimized Chinese detection v4ch_ppocr_mobile_slim_v2.0_det- Lightweight mobile detectionch_ppocr_mobile_v2.0_det- Mobile-optimized detectionch_ppocr_server_v2.0_det- Server-optimized detectionen_PP-OCRv3_det- English text detection
Text Recognition Models
arabic_PP-OCRv3_rec- Arabic text recognitionch_PP-OCRv2_rec- Chinese text recognition v2ch_PP-OCRv3_rec- Chinese text recognition v3ch_PP-OCRv4_rec- Chinese text recognition v4ch_PP-OCRv4_server_rec- Server-optimized Chinese recognition v4ch_ppocr_mobile_v2.0_rec- Mobile-optimized Chinese recognitionch_ppocr_server_v2.0_rec- Server-optimized Chinese recognitionchinese_cht_PP-OCRv3_rec- Traditional Chinese recognitioncyrillic_PP-OCRv3_rec- Cyrillic script recognitiondevanagari_PP-OCRv3_rec- Devanagari script recognitionen_PP-OCRv3_rec- English text recognition v3en_PP-OCRv4_rec- English text recognition v4en_number_mobile_v2.0_rec- Mobile-optimized number recognitionjapan_PP-OCRv3_rec- Japanese text recognitionka_PP-OCRv3_rec- Kannada text recognitionkorean_PP-OCRv3_rec- Korean text recognitionlatin_PP-OCRv3_rec- Latin script recognitionta_PP-OCRv3_rec- Tamil text recognitionte_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_detprovides excellent balance of accuracy and speed - The default recognition model
ch_PP-OCRv4_recsupports 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}
}
Fontes
1 fonte
Fontes
1 fonteVerificado 30 de out.
Download files
Artefatos de modelo
27 artefatos
Artefatos de modelo
27 artefatosdet/ch_PP-OCRv2_det/model.onnx
onnx · 2,24 MB · SHA-256 9a43d413886d…e242 · Hugging Face
Download filedet/ch_PP-OCRv3_det/model.onnx
onnx · 2,32 MB · SHA-256 ab24b4a00028…4ba0 · Hugging Face
Download filedet/ch_PP-OCRv4_det/model.onnx
onnx · 4,53 MB · SHA-256 30a86f573118…cdff · Hugging Face
Download filedet/ch_PP-OCRv4_server_det/model.onnx
onnx · 108 MB · SHA-256 fbff8d15a21e…5d95 · Hugging Face
Download filedet/ch_ppocr_mobile_slim_v2.0_det/model.onnx
onnx · 1,74 MB · SHA-256 e85ea38915c7…c878 · Hugging Face
Download filedet/ch_ppocr_mobile_v2.0_det/model.onnx
onnx · 2,24 MB · SHA-256 78fc00d1dc27…29ab · Hugging Face
Download filedet/ch_ppocr_server_v2.0_det/model.onnx
onnx · 46,6 MB · SHA-256 ffe9717ac127…ed9d · Hugging Face
Download filedet/en_PP-OCRv3_det/model.onnx
onnx · 2,32 MB · SHA-256 69d10a2f151e…f1f9 · Hugging Face
Download filerec/arabic_PP-OCRv3_rec/model.onnx
onnx · 8,57 MB · SHA-256 1be9c242e6f4…74c0 · Hugging Face
Download filerec/ch_PP-OCRv2_rec/model.onnx
onnx · 7,98 MB · SHA-256 9bb4a3e53c8e…b2b8 · Hugging Face
Download filerec/ch_PP-OCRv3_rec/model.onnx
onnx · 10,2 MB · SHA-256 fd78da016159…1e4b · Hugging Face
Download filerec/ch_PP-OCRv4_rec/model.onnx
onnx · 10,3 MB · SHA-256 1c7cf60de2af…a68b · Hugging Face
Download filerec/ch_PP-OCRv4_server_rec/model.onnx
onnx · 86,3 MB · SHA-256 12832e70fef8…c34c · Hugging Face
Download filerec/ch_ppocr_mobile_v2.0_rec/model.onnx
onnx · 4,21 MB · SHA-256 0e9b1324d4ed…4680 · Hugging Face
Download filerec/ch_ppocr_server_v2.0_rec/model.onnx
onnx · 106 MB · SHA-256 2091789e9b49…6010 · Hugging Face
Download filerec/chinese_cht_PP-OCRv3_rec/model.onnx
onnx · 10,6 MB · SHA-256 e9c18904f7e9…46d3 · Hugging Face
Download filerec/cyrillic_PP-OCRv3_rec/model.onnx
onnx · 8,57 MB · SHA-256 befb0c18a564…3f31 · Hugging Face
Download filerec/devanagari_PP-OCRv3_rec/model.onnx
onnx · 8,57 MB · SHA-256 5a402cae34f8…8c69 · Hugging Face
Download filerec/en_number_mobile_v2.0_rec/model.onnx
onnx · 1,80 MB · SHA-256 03bfb4f083d1…b262 · Hugging Face
Download filerec/en_PP-OCRv3_rec/model.onnx
onnx · 8,55 MB · SHA-256 18fae12e175a…3f49 · Hugging Face
Download filerec/en_PP-OCRv4_rec/model.onnx
onnx · 7,31 MB · SHA-256 870d81b658bb…0959 · Hugging Face
Download filerec/japan_PP-OCRv3_rec/model.onnx
onnx · 9,62 MB · SHA-256 37ab0d0c32a2…2935 · Hugging Face
Download filerec/ka_PP-OCRv3_rec/model.onnx
onnx · 8,57 MB · SHA-256 52a75cdf8608…f958 · Hugging Face
Download filerec/korean_PP-OCRv3_rec/model.onnx
onnx · 9,44 MB · SHA-256 a24c96b1cace…c18a · Hugging Face
Download filerec/latin_PP-OCRv3_rec/model.onnx
onnx · 8,57 MB · SHA-256 f26feb219f30…d0ad · Hugging Face
Download filerec/ta_PP-OCRv3_rec/model.onnx
onnx · 8,56 MB · SHA-256 0efe02168a23…6d38 · Hugging Face
Download filerec/te_PP-OCRv3_rec/model.onnx
onnx · 8,56 MB · SHA-256 974705f1c3e4…711a · Hugging Face
Download fileTrechos de fonte
2 trechos
Trechos de fonte
2 trechos--- 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
