飞桨PaddlePaddle/PP-OCRv6_tiny_det_onnx
模型介绍文件和版本Pull Requests讨论分析
下载使用量0

PP-OCRv6:从150万到3450万参数,在OCR任务上超越十亿级视觉语言模型

repo HuggingFace X License Paddle Model Safetensors Model

🔥 官方网站 📝 技术报告

PP-OCRv6 概述

PP-OCRv6 是一款轻量级 OCR 系统,融合了架构创新与数据驱动优化。它围绕统一的 MetaFormer 风格构建块并结合结构重参数化,重新设计了骨干网络、检测颈部和识别颈部。三种模型层级(medium、small、tiny)共享相同的块基元,覆盖从服务器到边缘端的部署场景。

核心特性

  1. 统一且可扩展的模型家族:三级 OCR 模型家族,参数规模从 150 万到 3450 万不等。PP-OCRv6_medium 实现了 86.2% 的检测 Hmean 和 83.2% 的识别准确率,分别比 PP-OCRv5_server 提升了 4.6% 和 5.1%。

  2. 轻量级架构创新:(i) LCNetV4,一种采用结构重参数化的 MetaFormer 风格轻量级骨干网络;(ii) RepLKFPN,一种带有扩张可重参数化深度卷积的检测颈部;(iii) EncoderWithLightSVTR,一种具有局部-全局注意力和 additive 跳跃连接的识别颈部。

  3. 多语言与场景支持:支持 48 种语言和多样化的工业场景(数字显示、点阵字符、轮胎印等),在参数数量少几个数量级的情况下,性能超越 Qwen3-VL-235B、GPT-5.5 和 Gemini-3.1-Pro。

PP-OCRv6_tiny_det

简介

PP-OCRv6 文本检测架构 overview

PP-OCRv6_tiny_det 是 PaddleOCR 团队开发的 PP-OCRv6 检测系列中的轻量模型。它采用 LCNetV4 作为骨干网络,RepLKFPN 作为特征金字塔颈部,能够在多种场景下提供准确的文本定位,包括手写体、印刷体、旋转文本、弯曲文本以及多语言艺术字等。该模型包含 0.43M 参数。关键精度指标如下:

模型Average手写中文手写英文印刷中文印刷英文繁体中文古文日文模糊表情符号扭曲拼音艺术字表格旋转工业场景通用场景
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

快速开始

安装

# Install PaddleOCR
pip install paddleocr

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

模型使用

您可以通过一条命令快速体验功能:

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

您也可以将文本检测模块的模型推理集成到您的项目中。在运行以下代码之前,请将示例图像下载到本地机器。

from paddleocr import TextDetection
model = TextDetection(model_name="PP-OCRv6_tiny_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")

有关使用命令的详细说明和参数解释,请参考文档。

流水线使用方法

通用的OCR流水线可从图像中提取文本信息。该流水线包含以下几个模块:

  • 文档图像方向分类模块(可选)
  • 文本图像矫正模块(可选)
  • 文本行方向分类模块(可选)
  • 文本检测模块
  • 文本识别模块

运行单个命令即可快速体验OCR流水线:

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

项目集成说明:

from paddleocr import PaddleOCR

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

有关使用命令和参数说明的详细信息,请参考文档。

链接

PaddleOCR 代码库

PaddleOCR 文档

引用

@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},
}