📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Update README
SWHLb2182f509a6b
diff --git a/README.md b/README.mdindex 5120569..03d4dbc 100755--- a/README.md+++ b/README.md@@ -1,9 +1,13 @@-[简体中文](https://github.com/RapidAI/RapidOCR/blob/main/docs/README_zh.md) | English+<div align="center"><img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/RapidOCR_LOGO.png" width="55%" height="55%"/>-<br/>+<div> </div>+<div align="center">+ <b><font size="4"><i>Open source OCR for the security of the digital world</i></font></b>+</div>+<div> </div><a href="https://huggingface.co/spaces/SWHL/RapidOCRDemo" target="_blank"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Hugging Face Demo-blue"></a><a href="https://www.modelscope.cn/studios/liekkas/RapidOCRDemo/summary" target="_blank"><img src="https://img.shields.io/badge/ModelScope-Demo-blue"></a>@@ -18,6 +22,7 @@<a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a><a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>+[简体中文](https://github.com/RapidAI/RapidOCR/blob/main/docs/README_zh.md) | English</div><details>@@ -112,4 +117,4 @@ If you find this project useful in your research, please consider cite:### LicenseThe copyright of the OCR model belongs to Baidu, and the copyright of other engineering codes belongs to the owner of this repo.-This project is released under the [Apache 2.0 license](LICENSE).+This project is released under the [Apache 2.0 license](./LICENSE).diff --git a/docs/README_zh.md b/docs/README_zh.mdindex 5eb4e44..d7fd0f7 100644--- a/docs/README_zh.md+++ b/docs/README_zh.md@@ -1,61 +1,49 @@简体中文 | [English](https://github.com/RapidAI/RapidOCR/blob/main/README.md)<div align="center">- <img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/RapidOCR_LOGO.png" width="65%" height="65%"/>-</div>+ <img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/RapidOCR_LOGO.png" width="55%" height="55%"/>-# 捷智OCR-*信创级开源OCR - 为世界内容安全贡献力量*+<div> </div>+<div align="center">+ <b><font size="4"><i>信创级开源OCR - 为世界内容安全贡献力量</i></font></b>+</div>+<div> </div>++<a href="https://huggingface.co/spaces/SWHL/RapidOCRDemo" target="_blank"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Hugging Face Demo-blue"></a>+<a href="https://www.modelscope.cn/studios/liekkas/RapidOCRDemo/summary" target="_blank"><img src="https://img.shields.io/badge/ModelScope-Demo-blue"></a>+<a href="https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/assets/RapidOCRDemo.ipynb" target="_blank"><img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/colab-badge.svg" alt="Open in Colab"></a>+<a href="https://aistudio.baidu.com/aistudio/projectdetail/4444785?sUid=57084&shared=1&ts=1660896122332" target="_blank"><img src="https://img.shields.io/badge/PP-Open in AI Studio-blue.svg"></a><br/>+<a href=""><img src="https://img.shields.io/badge/Python->=3.6,<3.12-aff.svg"></a>+<a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>+<a href="https://github.com/RapidAI/RapidOCR/graphs/contributors"><img src="https://img.shields.io/github/contributors/RapidAI/RapidOCR?color=9ea"></a>+<a href="https://pepy.tech/project/rapidocr_onnxruntime"><img src="https://static.pepy.tech/personalized-badge/rapidocr_onnxruntime?period=total&units=abbreviation&left_color=grey&right_color=blue&left_text=Downloads%20Ort"></a>+<a href="https://pypi.org/project/rapidocr-onnxruntime/"><img alt="PyPI" src="https://img.shields.io/pypi/v/rapidocr-onnxruntime"></a>+<a href="https://github.com/RapidAI/RapidOCR/stargazers"><img src="https://img.shields.io/github/stars/RapidAI/RapidOCR?color=ccf"></a>+<a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a>+<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>-<p align="left">- <a href="https://huggingface.co/spaces/SWHL/RapidOCRDemo" target="_blank"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Hugging Face Demo-blue"></a>- <a href="https://www.modelscope.cn/studios/liekkas/RapidOCRDemo/summary" target="_blank"><img src="https://img.shields.io/badge/ModelScope-Demo-blue"></a>- <a href="https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/assets/RapidOCRDemo.ipynb" target="_blank"><img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/colab-badge.svg" alt="Open in Colab"></a>- <a href="https://aistudio.baidu.com/aistudio/projectdetail/4444785?sUid=57084&shared=1&ts=1660896122332" target="_blank"><img src="https://img.shields.io/badge/PP-Open in AI Studio-blue.svg"></a><br/>- <a href=""><img src="https://img.shields.io/badge/Python->=3.6,<3.12-aff.svg"></a>- <a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>- <a href="https://github.com/RapidAI/RapidOCR/graphs/contributors"><img src="https://img.shields.io/github/contributors/RapidAI/RapidOCR?color=9ea"></a>- <a href="https://pepy.tech/project/rapidocr_onnxruntime"><img src="https://static.pepy.tech/personalized-badge/rapidocr_onnxruntime?period=total&units=abbreviation&left_color=grey&right_color=blue&left_text=Downloads%20Ort"></a>- <a href="https://pypi.org/project/rapidocr-onnxruntime/"><img alt="PyPI" src="https://img.shields.io/pypi/v/rapidocr-onnxruntime"></a>- <a href="https://github.com/RapidAI/RapidOCR/stargazers"><img src="https://img.shields.io/github/stars/RapidAI/RapidOCR?color=ccf"></a>- <a href='https://rapidocr.readthedocs.io/en/latest/?badge=latest'>- <img src='https://readthedocs.org/projects/rapidocr/badge/?version=latest' alt='Documentation Status' />- </a>- <a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a>- <a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>-</p>+简体中文 | [English](https://github.com/RapidAI/RapidOCR/blob/main/README.md)+</div><details><summary>目录</summary>-- [捷智OCR](#捷智ocr)- - [商业支持](#商业支持)- - [简介](#简介)- - [最近动态](#最近动态)- - [文档导航](#文档导航)- - [生态框架](#生态框架)- - [在线demo](#在线demo)- - [更新日志(more)](#更新日志more)- - [TODO以及任务认领](#todo以及任务认领)- - [原始发起者及初创作者](#原始发起者及初创作者)- - [致谢](#致谢)- - [赞助](#赞助)- - [版权声明](#版权声明)- - [授权](#授权)- - [加入我们](#加入我们)- - [示例图](#示例图)- - [C++/JVM示例图像](#cjvm示例图像)- - [.Net示例图像](#net示例图像)- - [多语言示例图像](#多语言示例图像)+- [简介](#简介)+- [Demo](#demo)+- [安装](#安装)+- [使用](#使用)+- [文档](#文档)+- [致谢](#致谢)+- [贡献者](#贡献者)+- [赞助](#赞助)+- [贡献](#贡献)+- [引用](#引用)+- [开源协议](#开源协议)+- [加入我们](#加入我们)</details>-## 商业支持-- 🎉🎉🎉 推出知识星球[RapidAI私享群](https://t.zsxq.com/0duLBZczw),这里的提问会优先得到回答和支持,也会享受到RapidAI组织后续持续优质的服务,欢迎大家的加入。-- 提供信创平台多架构,包括**Arm/X86/mips(龙芯)/RISC-V**等信创CPU支持,同时兼容**ONNXRuntime/OpenVINO/NCNN**。有意者邮件联系: [email protected], 请先邮件咨询服务项目,即时回复联系方式。-- 提供国产操作系统(海光、中科方德、麒麟等等)OCR Docker部署服务,有意者 → ✉ [email protected]。--## 简介+### 简介- 💖目前已知**运行速度最快、支持最广**,完全开源免费并支持离线快速部署的多平台多语言OCR。- **支持的语言**: 默认是中英文,其他语言识别需要自助转换。具体参考[这里](https://github.com/RapidAI/RapidOCR/wiki/support_language)- **缘起**:百度paddlepaddle工程化不是太好,为了方便大家在各种端上进行ocr推理,我们将它转换为onnx格式,使用`Python/C++/Java/Swift/C#` 将它移植到各个平台。@@ -65,100 +53,26 @@- 不满足要求 → 基于[PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)在自己数据上微调 → RapidOCR部署。- 如果该仓库有帮助到你,还请点个小星星⭐呗!-## 最近动态-- 2023-08-27:- - \[Python\] 整合PaddleOCR v4版本模型,并对v4模型做[评测](https://github.com/RapidAI/RapidOCR/wiki/%E4%B8%8D%E5%90%8C%E7%89%88%E6%9C%AC%E6%A8%A1%E5%9E%8B%E4%B9%8B%E9%97%B4%E6%AF%94%E8%BE%83)。基于v4的`rapidocr`包已经更新到`v1.3.0`中,使用文档参见:[link](https://github.com/RapidAI/RapidOCR/tree/main/python)- - 梳理`rapidocr`版本系列差异,优化python部分文档。--## 文档导航-- [Wiki](https://github.com/RapidAI/RapidOCR/wiki)- - [自定义识别模型及模型转换为ONNX](https://github.com/RapidAI/RapidOCR/wiki/support_language)- - [不同版本模型之间效果比较](https://github.com/RapidAI/RapidOCR/wiki/%E4%B8%8D%E5%90%8C%E7%89%88%E6%9C%AC%E6%A8%A1%E5%9E%8B%E4%B9%8B%E9%97%B4%E6%AF%94%E8%BE%83)- - [ONNXRuntime推理调优指南](https://github.com/RapidAI/RapidOCR/wiki/ONNXRuntime%E6%8E%A8%E7%90%86%E8%B0%83%E4%BC%98%E6%8C%87%E5%8D%97)- - [RapidOCR调优尝试教程](https://github.com/RapidAI/RapidOCR/wiki/RapidOCR%E8%B0%83%E4%BC%98%E5%B0%9D%E8%AF%95%E6%95%99%E7%A8%8B)- - [OpenVINO推理](https://github.com/RapidAI/RapidOCR/wiki/openvino%E6%8E%A8%E7%90%86)- - [config.yaml参数详解](https://github.com/RapidAI/RapidOCR/wiki/config_parameter)-- [Python范例](https://github.com/RapidAI/RapidOCR/blob/main/python/README.md)-- [C++范例(Windows/Linux/macOS)](https://github.com/RapidAI/RapidOCR/blob/main/cpp)- - [RapidOcrOnnx](https://github.com/RapidAI/RapidOcrOnnx)- - [RapidOcrNcnn](https://github.com/RapidAI/RapidOcrNcnn)-- [Jvm范例(Java/Kotlin)](https://github.com/RapidAI/RapidOCR/blob/main/jvm)- - [RapidOcrOnnxJvm](https://github.com/RapidAI/RapidOcrOnnxJvm)- - [RapidOcrNcnnJvm](https://github.com/RapidAI/RapidOcrNcnnJvm)-- [.Net范例(C#)](https://github.com/RapidAI/RapidOCRCSharp)-- [Android范例](https://github.com/RapidAI/RapidOcrAndroidOnnx)-- 网页版范例- - [网页版OCR](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)- - [Nuitka打包rapdocr_web](https://github.com/RapidAI/RapidOCR/wiki/Nuitka%E6%89%93%E5%8C%85rapidocr_web%E6%93%8D%E4%BD%9C%E6%96%87%E6%A1%A3)- - [多语言网页版OCR](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb_multi/README.md)-- [API版](https://github.com/RapidAI/RapidOCR/tree/main/api)-- [版面结构化-RapidStructure](https://github.com/RapidAI/RapidStructure)- - [含文本的图像方向分类](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Orientation.md)- - [版面分析](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Layout.md)- - [表格还原](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Table.md)-- [常见问题 FAQ](https://github.com/RapidAI/RapidOCR/wiki/FAQ)-- 衍生项目- - [RapidOCRServer](https://github.com/Physton/RapidOCRServer):RapidOCR HTTP服务/win32程序/易语言编写- - [PaddleModelConverter](https://github.com/RapidAI/PaddleOCRModelConverter): 模型自助转换- - [TextDetMetric](https://github.com/SWHL/TextDetMetric):文本检测模型评估-- [垂直项目](https://github.com/RapidAI/RapidOCR/blob/main/docs/related_projects.md)- - [RapidOCRPDF](https://github.com/RapidAI/RapidOCRPDF):解析PDF文件- - [RapidVideOCR](https://github.com/SWHL/RapidVideOCR):基于RapidOCR,提取视频中的硬字幕- - [LGPMA_Infer](https://github.com/SWHL/LGPMA_Infer): 表格结构还原 | [博客解读论文和源码](http://t.csdn.cn/QNN3S)- - [PaperEdge](https://github.com/cvlab-stonybrook/PaperEdge):文档图像矫正 | [Demo](https://huggingface.co/spaces/SWHL/PaperEdgeDemo)- - [CTRNet](https://github.com/lcy0604/CTRNet):图像文字擦除 | [Demo](https://huggingface.co/spaces/SWHL/CTRNetDemo)--## 生态框架-```mermaid-flowchart LR- subgraph Step- direction TB- C(Text Det) --> D(Text Cls) --> E(Text Rec)- end-- A[/OurSelf Dataset/] --> B(PaddleOCR) --Train--> Step --> F(PaddleOCRModelConverter)- F --ONNX--> G{RapidOCR Deploy\n<b>Python/C++/Java/C#</b>}- G --> H(Windows x86/x64) & I(Linux) & J(Android) & K(Web) & L(Raspberry Pi)-- click B "https://github.com/PaddlePaddle/PaddleOCR" _blank- click F "https://github.com/RapidAI/PaddleOCRModelConverter" _blank-```--## 在线demo-- 自建在线demo- - 详情参见:[ocrweb/README](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)- - **demo所用模型组合(最优组合)为**:- ```text- ch_PP-OCRv3_det + ch_ppocr_mobile_v2.0_cls + ch_PP-OCRv3_rec- ```- - **示例图**:- <div align="center">- <img src="https://github.com/RapidAI/RapidOCR/blob/ae529c2ba79e6cbf04c54caf2d24feb75e947ca4/assets/demo.gif" width="100%" height="100%">- </div>-- [Hugging Face Demo](https://huggingface.co/spaces/SWHL/RapidOCRDemo) | [魔搭demo](https://www.modelscope.cn/studios/liekkas/RapidOCRDemo/summary)- - 该demo依托于Hugging Face的Spaces构建,采用Gradio库搭建。- - 示例图:- <div align="center">- <img src="https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/hf_demo.png" width="100%" height="100%">- </div>+### [Demo](https://huggingface.co/spaces/SWHL/RapidOCRDemo)+<div align="center">+ <img src="https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/hf_demo_part.png" alt="Demo" width="100%" height="100%">+</div>-## 更新日志([more](https://github.com/RapidAI/RapidOCR/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97_rapidocr))-- [rapidocr](https://github.com/RapidAI/RapidOCR/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97_rapidocr)-- [rapidocr_web](https://github.com/RapidAI/RapidOCR/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97_ocrweb)-- [rapidocr_api](https://github.com/RapidAI/RapidOCR/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97_rapid_api)-## TODO以及任务认领-- 参见这里:[link](https://github.com/orgs/RapidAI/projects/7)+### 安装+```bash+pip install rapidocr_onnxruntime+```-## 原始发起者及初创作者-<p align="left">- <a href="https://github.com/RapidAI/RapidOCR/graphs/contributors">- <img src="https://contrib.rocks/image?repo=RapidAI/RapidOCR" width="50%"/>- </a>-</p>+### 使用+```bash+rapidocr_onnxruntime -img 1.jpg+```+### 文档+完整文档请移步:[docs](https://rapidai.github.io/RapidOCRDocs/docs/)-## 致谢+### 致谢- 非常感谢[DeliciaLaniD](https://github.com/DeliciaLaniD)修复ocrweb中扫描动画起始位置错位问题。- 非常感谢[zhsunlight](https://github.com/zhsunlight)关于参数化调用GPU推理的建议以及细致周到的测试。- 非常感谢[lzh111222334](https://github.com/lzh111222334)修复python版本下rec前处理部分bug。@@ -166,7 +80,14 @@ flowchart LR- 非常感谢[DeadWood8](https://github.com/DeadWood8)提供了[Nuitka打包rapidocr_web的操作文档和可执行exe](https://github.com/RapidAI/RapidOCR/wiki/Nuitka%E6%89%93%E5%8C%85rapidocr_web%E6%93%8D%E4%BD%9C%E6%96%87%E6%A1%A3)。- 非常感谢[Loovelj](https://github.com/Loovelj)指出对文本检测框排序时顺序问题,详情参见[issue 75](https://github.com/RapidAI/RapidOCR/issues/75)。-## 赞助+### 贡献者+<p align="left">+ <a href="https://github.com/RapidAI/RapidOCR/graphs/contributors">+ <img src="https://contrib.rocks/image?repo=RapidAI/RapidOCR" width="50%"/>+ </a>+</p>++### 赞助|赞助者|应用的产品||:---:|:---:||<a href="https://github.com/cuiliang" title="cuiliang"><img src="https://avatars.githubusercontent.com/u/1972649?v=4" width=65 height=65></a>|<a href="https://getquicker.net/" title="Quicker指尖工具箱"><img src="https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/Quicker.jpg" width=65 height=65></a>|@@ -174,24 +95,26 @@ flowchart LR- 如果您想要赞助该项目,可直接点击当前页最上面的Sponsor按钮,请写好备注(**您的Github账号名称**),方便添加到上面赞助列表中。+### 贡献+- 欢迎请求请求。 对于重大更改,请先打开issue讨论您想要改变的内容。+- 请确保适当更新测试。++### 引用+如果您发现该项目对您的研究有用,请考虑引用:+```bibtex+@misc{RapidOCR 2021,+ title={{Rapid OCR}: OCR Toolbox},+ author={MindSpore Team},+ howpublished = {\url{https://github.com/RapidAI/RapidOCR}},+ year={2021}+}+```-## 版权声明-- 如果你的产品使用了本仓库中的全部或部分代码、文字或材料-- 如果你的研究用到了该项目,可以如下引用:- ```latex- @misc{RapidOCR 2021,- title={{Rapid OCR}: OCR Toolbox},- author={MindSpore Team},- howpublished = {\url{https://github.com/RapidAI/RapidOCR}},- year={2021}- }- ```--## 授权-- OCR模型版权归百度所有,其它工程代码版权归本仓库所有者所有。-- 本软件采用Apache 授权方式,欢迎大家贡献代码,提交issue 甚至PR。+### 开源协议+- OCR模型版权归百度所有,其他工程代码版权归本仓库所有者所有。+- 该项目采用 [Apache 2.0 license](../LICENSE) 开源许可证。-## 加入我们+### 加入我们- 微信扫描以下二维码,关注**RapidAI公众号**,回复OCR即可加入RapidOCR微信交流群:<div align="center"><img src="https://raw.githubusercontent.com/RapidAI/.github/main/assets/RapidAI_WeChatAccount.jpg" width="25%" height="25%" align="center">@@ -201,19 +124,3 @@ flowchart LR<div align="center"><img src="https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/QQ3.jpg" width="25%" height="25%" align="center"></div>--## 示例图-#### C++/JVM示例图像-<div align="center">- <img src="https://github.com/RapidAI/RapidOCR/blob/ae529c2ba79e6cbf04c54caf2d24feb75e947ca4/assets/demo_cpp.png" width="100%" height="100%">-</div>--#### .Net示例图像-<div align="center">- <img src="https://github.com/RapidAI/RapidOCR/blob/ae529c2ba79e6cbf04c54caf2d24feb75e947ca4/assets/demo_cs.png" width="100%" height="100%">-</div>--#### 多语言示例图像-<div align="center">- <img src="https://github.com/RapidAI/RapidOCR/blob/ae529c2ba79e6cbf04c54caf2d24feb75e947ca4/assets/demo_multi_language.jpg" width="80%" height="80%">-</div>