Model reference · open weights

PP-OCRv6_small_det_onnx

LLMs PaddlePaddle Image→text 1 build Open weights 9k dl/mo

PP-OCRv6_small_det_onnx is an open-weight language model from Baidu.

  • PP-OCRv6_small_det_onnx is a lightweight text detection model developed by Baidu for the PaddleOCR system.
  • It uses the LCNetV4 backbone and RepLKFPN feature pyramid neck to localize text in images, supporting English and Chinese.
  • The model contains 2.48M parameters and is distributed under the Apache-2.0 license.

Summary of the PaddlePaddle/PP-OCRv6_small_det_onnx model card, 2026-10-01

What it is

Released byBaidu
Released2026-06-09

From the model card

What Baidu says about PP-OCRv6_small_det_onnx

Read the model card

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

🔥 Official Website 📝 Technical Report

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. Unified and Scalable Model Family: A three-tier OCR model family spanning 1.5M to 34.5M parameters. PP-OCRv6_medium achieves 86.2% detection Hmean and 83.2% recognition accuracy, outperforming PP-OCRv5_server by +4.6% and +5.1% respectively.

  2. 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.

  3. Multi-Language and Scenario Support: Supports 48 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-OCRv6_small_det

Introduction

PP-OCRv6 text detection architecture overview

PP-OCRv6_small_det is the small model in the PP-OCRv6 detection series developed by the PaddleOCR team. It uses LCNetV4 as the backbone and RepLKFPN as the feature pyramid neck, providing accurate text localization across diverse scenarios including handwritten, printed, rotated, curved, and artistic text in multiple languages. The model contains 2.48M parameters. The key accuracy metrics are as follows:

ModelAverageHandwritten CNHandwritten ENPrinted CNPrinted ENTraditional ChineseAncient TextJapaneseBlurEmojiWarpPinyinArtisticTableRotationIndustrialGeneral
Gemini-3.1-Pro46.853.456.547.347.639.045.838.250.068.144.640.665.226.922.152.550.2
GPT-5.545.642.458.550.251.935.026.742.049.197.537.736.352.071.010.036.232.6
Qwen3-VL-235B38.356.566.041.737.019.313.127.038.581.228.533.068.319.62.148.432.3
Kimi-K2.612.812.525.510.118.58.27.511.216.928.913.96.816.110.90.86.310.9
MiniMax-M312.013.719.39.814.17.711.110.616.132.812.88.516.65.50.16.46.4
PP-OCRv5_server81.680.384.194.591.781.567.677.290.196.287.667.167.397.180.064.379.7
PP-OCRv5_mobile75.274.477.790.591.082.358.172.787.493.682.757.552.592.864.752.872.1
PP-OCRv6_medium86.283.784.095.193.786.380.284.394.199.688.674.069.096.893.873.382.8
PP-OCRv6_small84.180.587.194.293.685.772.682.392.699.787.669.665.395.693.767.678.2
PP-OCRv6_tiny80.679.485.993.192.383.763.076.689.399.886.159.060.194.791.062.073.8

Quick Start

Installation

# Install PaddleOCR
pip install paddleocr

# Install ONNX Runtime
pip install onnxruntime-gpu  # or onnxruntime for CPU-only

Model Usage

You can quickly experience the functionality with a single command:

paddleocr text_detection \
    --model_name PP-OCRv6_small_det \
    --engine onnxruntime \
    -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/3ul2Rq4Sk5Cn-l69D695U.png

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

from paddleocr import TextDetection
model = TextDetection(model_name="PP-OCRv6_small_det", engine="onnxruntime")
output = model.predict(input="3ul2Rq4Sk5Cn-l69D695U.png", batch_size=1)
for res in output:
    res.print()
    res.save_to_img(save_path="./output/")
    res.save_to_json(save_path="./output/res.json")

For details about usage command and descriptions of parameters, please refer to the Document.

Pipeline Usage

The general OCR pipeline extracts 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:

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

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms