百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PaddleOCR-ncnn-CPP

> 编程语言
开源

使用 ncnn 进行推理的 C++ 实现的 PP-OCRv3/4/5/6。

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 ncnn 进行推理的 C++ 实现的 PP-OCRv3/4/5/6。

This repository provides C++ implementations of PP-OCRv3/4/5/6, inspired by the official PaddleOCR project and using ncnn for inference.

The Release page contains a complete project archive that includes resources like models and images required to run the demo.

Demo

Usage

bash
./main ../config.json ../images/ocr_img1.png

Requirements

  • OpenCV 4.11.0
  • ncnn 20241226
  • OpenMP 2.0+

Benchmarks

I ran benchmarks on a VPS using ocr_img1.png (simple) and ocr_img3.png (complex). You can find those images inside the release page archive.tar.gz.

CPU: 2 x Intel(R) Xeon(R) Platinum (2) @ 2.50 GHz

Models Latency / Peak memory for ocr_img1 Latency / Peak memory for ocr_img3
PP-OCRv3 mobile 88.09 ms / 106.2 MB 926.34 ms / 228.3 MB
PP-OCRv4 mobile 90.44 ms / 97.57 MB 1005.45 ms / 211.5 MB
PP-OCRv5 mobile 92.17 ms / 106.1 MB 1062.56 ms / 292.2 MB
PP-OCRv5 server 3948.50 ms / 1.545 GB 11172.83 ms / OOM
PP-OCRv6 tiny 67.45 ms / 62.22 MB 420.28 ms / 156.7 MB
PP-OCRv6 small 139.36 ms / 127.7 MB 1590.45 ms / 351.4 MB
PP-OCRv6 medium 584.79 ms / 425.3 MB 6298.11 ms / 706.2 MB

Tested on

  • macOS 15
  • Debian 12
  • Windows 10/11

Notes

Enabling FP16 may be faster but can cause NaN results on some devices. Edit config.json to enable or disable FP16.

Implementation References

https://github.com/MhLiao/DB

https://github.com/nihui/ncnn-android-ppocrv5

https://github.com/FeiGeChuanShu/ncnn_paddleocr

https://github.com/PaddlePaddle/PaddleOCR

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++cppcrnndbdeep-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言