CoolFace
Modelpublic

PaddlePaddle/PP-OCRv6_small_rec_onnx

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
22likes15kdownloads
Model Card

<div align="center">

<h1 align="center">

PP-OCRv6: From 1.5M to 34.5M Parameters, Surpassing Billion-Scale VLMs on OCR Tasks

</h1>

![repo](https://github.com/PaddlePaddle/PaddleOCR) ![HuggingFace](https://huggingface.co/PaddlePaddle/PP-OCRv6smallreconnx) [![X](https://img.shields.io/badge/X-PaddlePaddle-6080F0)](https://x.com/PaddlePaddle) [![License](https://img.shields.io/badge/license-Apache2.0-green)](./LICENSE) ![Paddle Model](https://huggingface.co/PaddlePaddle/PP-OCRv6smallrec) ![Safetensors Model](https://huggingface.co/PaddlePaddle/PP-OCRv6smallrec_safetensors)

๐Ÿ”ฅ [Official Website](https://www.paddleocr.com) ๐Ÿ“ [Technical Report](https://arxiv.org/pdf/2606.13108)

</div>

<div align="center"> <img src="https://cdn-uploads.huggingface.co/production/uploads/684ba591e717a30275a1b76a/0XIrg0UmmOvplnPjmsmK3.png" width="800"/> </div>

PP-OCRv6 Overview

PP-OCRv6 is a lightweight OCR system that combines architectural innovation with data-centric optimization. It redesigns the backbone, detection neck, and recognition neck around a unified MetaFormer-style building block with structural reparameterization. Three model tiers (medium, small, tiny) share the same block primitives, covering deployment scenarios from server to edge.

Key Features

  1. 1.Unified and Scalable Model Family: A three-tier OCR model family spanning 1.5M to 34.5M parameters. PP-OCRv6medium achieves 86.2% detection Hmean and 83.2% recognition accuracy, outperforming PP-OCRv5server by +4.6% and +5.1% respectively.
  1. 1.Lightweight Architectural Innovations: (i) LCNetV4, a MetaFormer-style lightweight backbone with structural reparameterization; (ii) RepLKFPN, a detection neck with dilated reparameterizable depthwise convolutions; (iii) EncoderWithLightSVTR, a recognition neck with local-global attention and additive skip connections.
  1. 1.Multi-Language and Scenario Support: Supports 50 languages and diverse industrial scenes (digital displays, dot-matrix characters, tire prints, etc.), surpassing Qwen3-VL-235B, GPT-5.5, and Gemini-3.1-Pro with orders of magnitude fewer parameters.

PP-OCRv6mediumrec

Introduction

<div align="center"> <img src="https://cdn-uploads.huggingface.co/production/uploads/684ba591e717a30275a1b76a/9hBYIA-pO6jhnG6bcZEaf.png" width="600"/>

PP-OCRv6 text recognition architecture overview </div>

PP-OCRv6smallrec is the mid-tier recognition model in the PP-OCRv6 series. It uses LCNetV4 as the backbone and EncoderWithLightSVTR as the recognition neck, with a CTC+NRTR multi-head decoder. The model supports 50 languages and contains 5.2M parameters. The key accuracy metrics are as follows:

ModelW-AvgHandwritten CNHandwritten ENPrinted CNPrinted ENTCAncientJPConfusableSpecialGeneralPinyinArtisticIndustrialScreenCard
GPT-5.564.219.256.975.782.257.563.758.649.148.367.750.453.062.467.771.1
Qwen3-VL-235B74.949.773.282.386.276.433.666.256.149.082.576.569.674.773.878.7
Kimi-K2.662.931.058.476.880.962.716.554.143.538.068.045.259.957.158.468.4
MiniMax-M354.115.560.363.581.553.22.243.742.242.853.850.344.344.156.667.0
Gemini-3.1-Pro71.446.473.080.090.569.518.067.254.450.374.675.963.169.173.275.9
PP-OCRv5_server78.158.059.690.185.174.760.473.759.456.886.574.464.070.268.187.6
PP-OCRv5_mobile73.741.750.986.086.072.057.875.855.754.880.772.554.059.357.681.7
PP-OCRv6_medium83.262.167.891.594.178.672.490.564.961.787.578.171.277.482.588.1
PP-OCRv6_small81.357.661.190.593.377.071.188.264.160.285.775.968.476.479.786.9
PP-OCRv6_tiny73.540.139.386.788.465.068.489.852.357.178.065.454.762.171.280.5

Quick Start

Installation

  1. 1.PaddleOCR
bash
# Install the basic version
pip install paddleocr

# Install the full version (includes all features)
pip install "paddleocr[all]"
  1. 1.ONNX Runtime environment (required for onnx models)
bash
pip install onnxruntime-gpu

Model Usage

You can quickly experience the functionality with a single command:

bash
paddleocr text_recognition \
    --model_name PP-OCRv6_medium_rec \
    --engine onnxruntime \
    -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/2PZfbirjfxA88695lRmgk.jpeg

You can also integrate the model inference of the text recognition module into your project. Before running the following code, please download the sample image to your local machine.

python
from paddleocr import TextRecognition
model = TextRecognition(model_name="PP-OCRv6_medium_rec", engine="onnxruntime")
output = model.predict(input="2PZfbirjfxA88695lRmgk.jpeg", batch_size=1)
for res in output:
    res.print()
    res.save_to_json(save_path="./output/res.json")

After running, the obtained result is as follows:

json
{'res': {'input_path': '2PZfbirjfxA88695lRmgk.jpeg', 'page_index': None, 'rec_text': 'day as a reminder of the', 'rec_score': 0.9857}}

The visualized image is as follows:

image/jpeg

<!-- TODO: Update document links to PP-OCRv6 official documentation when available --> For details about usage command and descriptions of parameters, please refer to the Document.

Pipeline Usage

The general OCR pipeline is used to solve text recognition tasks by extracting text information from images. The pipeline consists of several modules:

  • โ€”Document Image Orientation Classification Module (Optional)
  • โ€”Text Image Unwarping Module (Optional)
  • โ€”Text Line Orientation Classification Module (Optional)
  • โ€”Text Detection Module
  • โ€”Text Recognition Module

Run a single command to quickly experience the OCR pipeline:

bash
paddleocr ocr -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/3ul2Rq4Sk5Cn-l69D695U.png \
    --text_detection_model_name PP-OCRv6_medium_det \
    --text_recognition_model_name PP-OCRv6_medium_rec \
    --engine onnxruntime \
    --use_doc_orientation_classify False \
    --use_doc_unwarping False \
    --use_textline_orientation True \
    --save_path ./output \
    --device gpu:0

If savepath is specified, the visualization results will be saved under `savepath`. The visualization output is shown below:

image/jpeg

For project integration:

python
from paddleocr import PaddleOCR

ocr = PaddleOCR(
    text_detection_model_name="PP-OCRv6_medium_det",
    text_recognition_model_name="PP-OCRv6_medium_rec",
    engine="onnxruntime",
    use_doc_orientation_classify=False,
    use_doc_unwarping=False,
    use_textline_orientation=True,
)
result = ocr.predict("./3ul2Rq4Sk5Cn-l69D695U.png")
for res in result:
    res.print()
    res.save_to_img("output")
    res.save_to_json("output")

<!-- TODO: Update document links to PP-OCRv6 official documentation when available --> For details about usage command and descriptions of parameters, please refer to the Document.

Links

PaddleOCR Repo

PaddleOCR Documentation

Citation

bibtex
@misc{zhang2026ppocrv6,
  title={PP-OCRv6: From 1.5M to 34.5M Parameters, Surpassing Billion-Scale VLMs on OCR Tasks},
  author={Yubo Zhang and Xueqing Wang and Manhui Lin and Yue Zhang and Penglongyi Deng and Ting Sun and Tingquan Gao and Zelun Zhang and Jiaxuan Liu and Changda Zhou and Hongen Liu and Suyin Liang and Cheng Cui and Yi Liu and Dianhai Yu and Yanjun Ma},
  year={2026},
  eprint={2606.13108},
  archivePrefix={arXiv},
  primaryClass={cs.CV},
  url={https://arxiv.org/abs/2606.13108},
}