📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Update README
SWHL18cb0efb1837
diff --git a/README.md b/README.mdindex 13023ef..e2f2b8b 100755--- a/README.md+++ b/README.md@@ -25,9 +25,9 @@- [RapidOCR (捷智OCR)](#rapidocr-捷智ocr)- [简介](#简介)- [近期更新(more)](#近期更新more)+ - [🚩2022-10-01 udpate:](#2022-10-01-udpate)- [🛴2022-09-01 update:](#2022-09-01-update)- [🧸2022-08-17 update:](#2022-08-17-update)- - [🕶2022-08-14 update:](#2022-08-14-update)- [相关项目(more)](#相关项目more)- [生态框架](#生态框架)- [常见问题 FAQ](#常见问题--faq)@@ -60,6 +60,10 @@- 基于百度的开源PaddleOCR 模型及训练,任何人可以使用本推理库,也可以根据自己的需求使用百度的paddlepaddle框架进行模型优化。## 近期更新([more](./docs/change_log.md))+#### 🚩2022-10-01 udpate:+- 修复python部分下一些较小bugs+- merge来自[AutumnSun1996](https://github.com/AutumnSun1996)的[OCRWeb实现的多语言部署](https://github.com/RapidAI/RapidOCR/pull/46)demo,详情参见:[ocrweb_mutli-README](./ocrweb_multi/README.md)+#### 🛴2022-09-01 update:- 由于openvino发布了2022.2.0.dev20220829版本,该版本解决了`cls`部分模型推理的问题。至此,基于openvino的rapidocr完成了统一,全部由openvino推理引擎完成。- 详细使用方法参见:[python/README](./python/README.md#源码使用步骤)@@ -67,11 +71,6 @@#### 🧸2022-08-17 update:- python/ocrweb部分 v1.1.0发布,详情参见[v1.1.0](https://github.com/RapidAI/RapidOCR/releases/tag/v1.1.0)-#### 🕶2022-08-14 update:-- ocrweb部分增加以API方式部署调用的功能,可以通过发送POST请求,来获得OCR识别结果。-- 详情参见:[API方式调用](./ocrweb/README.md#以api方式运行和调用)--## 相关项目([more](./docs/related_projects.md))- [RapidVideOCR](https://github.com/SWHL/RapidVideOCR):基于RapidOCR,提取视频中的硬字幕- [LGPMA_Infer](https://github.com/SWHL/LGPMA_Infer): 表格结构还原 | [博客解读论文和源码](https://blog.csdn.net/shiwanghualuo/article/details/125047732)diff --git a/docs/README_en.md b/docs/README_en.mdindex a68f931..0896d51 100644--- a/docs/README_en.md+++ b/docs/README_en.md@@ -25,9 +25,9 @@- [RapidOCR](#rapidocr)- [Introduction](#introduction)- [Recently updates(more)](#recently-updatesmore)+ - [🚩2022-10-01 udpate:](#2022-10-01-udpate)- [🛴2022-09-01 update:](#2022-09-01-update)- [🧸2022-08-17 update:](#2022-08-17-update)- - [🕶2022-08-14 update:](#2022-08-14-update)- [Overall Framework](#overall-framework)- [FAQ](#faq)- [SDK compilation status](#sdk-compilation-status)@@ -62,6 +62,10 @@- Based on Baidu's open source PaddleOCR model and training, anyone can use this inference library, or use Baidu's paddlepaddle framework for model optimization according to their own needs.## Recently updates([more](./change_log_en.md))+#### 🚩2022-10-01 udpate:+- Fix some minor bugs under python section.+- Merge the [OCRWeb Implementation of Multilingual Deployment](https://github.com/RapidAI/RapidOCR/pull/46) demo from [AutumnSun1996](https://github.com/AutumnSun1996), see for details: [ocrweb_mutli-README](./ocrweb_multi/README.md)+#### 🛴2022-09-01 update:- Since openvino released version 2022.2.0.dev20220829, this version solves the problem of `cls` partial model inference. So far, the openvino-based rapidocr has been unified, and it is all completed by the openvino inference engine.- For detailed usage, see: [python/README](../python/README.md#源码使用步骤).@@ -69,11 +73,6 @@#### 🧸2022-08-17 update:- The python/ocrweb part v1.1.0 is released, see the [link]((https://github.com/RapidAI/RapidOCR/releases/tag/v1.1.0)) for details.-#### 🕶2022-08-14 update:-- The ocrweb part adds the function of deploying calls by API, and you can send POST requests to get OCR recognition results.-- For details, see: [API deploy](../ocrweb/README.md#以api方式运行和调用)--## Overall Framework```mermaidflowchart LRdiff --git a/docs/change_log.md b/docs/change_log.mdindex 0a9466c..b9b4ef5 100644--- a/docs/change_log.md+++ b/docs/change_log.md@@ -1,3 +1,7 @@+#### 🚩2022-10-01 udpate:+- 修复python部分下一些较小bugs+- merge来自[AutumnSun1996](https://github.com/AutumnSun1996)的[OCRWeb实现的多语言部署](https://github.com/RapidAI/RapidOCR/pull/46)demo,详情参见:[ocrweb_mutli-README](../ocrweb_multi/README.md)+#### 🛴2022-09-01 update:- 由于openvino发布了2022.2.0.dev20220829版本,该版本解决了`cls`部分模型推理的问题。至此,基于openvino的rapidocr完成了统一,全部由openvino推理引擎完成。- 详细使用方法参见:[python/README](../python/README.md#源码使用步骤)@@ -27,7 +31,7 @@- 重新整理python部分推理代码,将常用调节参数全部放到yaml文件中,便于调节,更加容易使用- 详情参见:[README](./python/README.md)-#### 🍿2022-05-15 update+#### 🍿2022-05-15 udpate:- 增加PaddleOCR v3 rec模型转换后的ONNX模型,直接去网盘下载替换即可。([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))- 增加文本识别模型各个版本效果对比表格,详情点击[各个版本ONNX模型效果对比](#各个版本onnx模型效果对比)。v3的文本识别模型从自己构建测试集上的指标来看不如之前的好。@@ -35,37 +39,37 @@- 增加PaddleOCR v3 det模型转换的ONNX模型,直接去网盘下载,替换即可。([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))- 增加各个版本文本检测模型效果对比表格,详情点击[各个版本ONNX模型效果对比](#各个版本onnx模型效果对比)。v3的文本检测模型从指标来看是好于之前的v2的,推荐使用。-#### 🎧2022-04-04 update+#### 🎧2022-04-04 udpate:- 增加python下的基于OpenVINO推理引擎的支持- 给出OpenVINO和ONNXRuntime的性能对比表格- 详情参见:[python/README](./python/README.md)-#### 2022-02-24 update+#### 2022-02-24 udpate:- 优化python目录下的推理代码- 添加调用不同语言模型的推理代码示例- 详情参见:[python/onnxruntime_infer/README](./python/onnxruntime_infer/README.md)-#### 2021-12-18 update+#### 2021-12-18 udpate:- 添加[Google Colab Demo](https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/RapidOCRDemo.ipynb)-#### 2021-11-28 update+#### 2021-11-28 udpate:- 更新[ocrweb](http://rapidocr.51pda.cn:9003/)部分- 添加显示各个阶段处理时间- 更新说明文档- 更换文本检测模型为`ch_PP-OCRv2_det_infer.onnx`,推理更快,更准-#### 2021-11-13 update+#### 2021-11-13 udpate:- 添加python版本中文本检测和识别可调节的超参数,主要有`box_thresh|unclip_ratio|text_score`,详情见[参数调节](python/README.md#相关调节参数)- 将文本识别中字典位置以参数方式给出,便于灵活配置,详情见[keys_path](python/rapidOCR.sh)-#### 2021-10-27 update+#### 2021-10-27 udpate:- 添加使用onnxruntime-gpu版推理的代码(不过gpu版本的onnxruntime不太好用,按照[官方教程](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)配置,感觉没有调用起来GPU)- 具体使用步骤参见: [onnxruntime-gpu推理配置](python/README.md)-#### 2021-09-13 update+#### 2021-09-13 udpate:- 添加基于`python`的whl文件,便于使用,详情参见`release/python_sdk`-#### 2021-09-11 update+#### 2021-09-11 udpate:- 添加PP-OCRv2新增模型onnx版本- 使用方法推理代码不变,直接替换对应模型即可。- 经过在自有测试集上评测:@@ -73,7 +77,7 @@- PP-OCRv2识别模型效果无明显提升,模型大小增加了3.58M。- 模型上传到[百度网盘 提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)-#### 2021-08-07 update+#### 2021-08-07 udpate:- 现在正在做的- [ ] PP-Structure 表格结构和cell坐标预测 正在整理中@@ -81,27 +85,27 @@- [ ] 打Dokcer镜像- [x] 尝试onnxruntime-gpu推理-#### 2021-07-17 update+#### 2021-07-17 udpate:- 完善README文档- 增加**英文、数字识别**onnx模型,具体参见`python/en_number_ppocr_mobile_v2_rec`,用法同其他- 整理一下[模型转onnx](#模型转onnx)-#### 2021-07-04 update+#### 2021-07-04 udpate:- 目前仓库下的python程序已经可以在树莓派4B上,成功运行,详细信息请进群,询问群主- 更新整体结构图,添加树莓派的支持-#### 2021-06-20 update+#### 2021-06-20 udpate:- 优化ocrweb中识别结果显示,同时添加识别动图演示- 更新`datasets`目录,添加一些常用数据库链接(搬运一下^-^)- 更新[FAQ](./FAQ.md)-#### 2021-06-10 update+#### 2021-06-10 udpate:- 添加server版文本识别模型,详情见[提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)-#### 2021-06-08 update+#### 2021-06-08 udpate:- 整理仓库,统一模型下载路径- 完善相关说明文档-#### 2021-03-24 update+#### 2021-03-24 udpate:- 新模型已经完全兼容ONNXRuntime 1.7 或更高版本。 特别感谢:@Channingss- 新版onnxruntime比1.6.0 性能提升40%以上。diff --git a/docs/change_log_en.md b/docs/change_log_en.mdindex fcacae7..7a1900b 100644--- a/docs/change_log_en.md+++ b/docs/change_log_en.md@@ -1,3 +1,7 @@+#### 🚩2022-10-01 udpate:+- Fix some minor bugs under python section.+- Merge the [OCRWeb Implementation of Multilingual Deployment](https://github.com/RapidAI/RapidOCR/pull/46) demo from [AutumnSun1996](https://github.com/AutumnSun1996), see for details: [ocrweb_mutli-README](../ocrweb_multi/README.md)+#### 🛴2022-09-01 update:- Since openvino released version 2022.2.0.dev20220829, this version solves the problem of `cls` partial model inference. So far, the openvino-based rapidocr has been unified, and it is all completed by the openvino inference engine.- For detailed usage, see: [python/README](../python/README.md#源码使用步骤).@@ -32,42 +36,42 @@- Reorganize some of the python inference code, put all the common adjustment parameters into the yaml file, easy to adjust, easier to use, see: [README](../python/README.md)- The old inference code is located in the branch: [old_python_infer](https://github.com/RapidAI/RapidOCR/tree/old_python_infer)-#### 🍿2022-05-15 update+#### 🍿2022-05-15 udpate:- Add the ONNX model converted from the PaddleOCR v3 rec model, just go to the network disk to download and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))- Added a comparison table of the effects of each version of the text recognition model. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text recognition model of v3 is not as good as the previous one in terms of the indicators on the test set constructed by itself.-#### 😀2022-05-12 upadte+#### 😀2022-05-12 udpate:- Add the ONNX model converted from the PaddleOCR v3 det model, download it directly from the network disk, and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))- Added a comparison table of text detection model effects of various versions. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text detection model of v3 is better than the previous v2 in terms of the indicators on the test set constructed by itself, and it is recommended to use it.-#### 2022-02-24 update+#### 2022-02-24 udpate:- Optimize the inference code of the python part.- Add inference code examples that use the different language models.- For details, see: [python/README](../python/README.md)-#### 2021-12-18 update+#### 2021-12-18 udpate:- Add [Google Colab Demo](https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/RapidOCRDemo.ipynb).- Change the default det model of the `python/rapidOCR.sh`-#### 2021-11-28 update+#### 2021-11-28 udpate:- Update the [ocrweb](http://rapidocr.51pda.cn:9003/) part- Add the display of the inference time of each stage.- Add docs of the ocrweb.- Change the det model(`ch_PP-OCRv2_det_infer.onnx`), faster and more accurate.-#### 2021-11-13 update+#### 2021-11-13 udpate:- Add adjustable super parameters for text detection and recognition in Python version, mainly `box_thresh|unclip_ratio|text_score`, see [parameter adjustment](../python/README.md#相关调节参数) for details- The dictionary position in text recognition is given in parameter mode to facilitate flexible configuration. See [keys_path](python/rapidOCR.sh) for details-#### 2021-10-27 update+#### 2021-10-27 udpate:- Add the code that uses the onnxruntime GPU version of infering follow the [official tutorial](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html) Configuration. (however, the onnxruntime GPU version is not stable to use)- See: `python/README.md` for specific steps.-#### 2021-09-13 update+#### 2021-09-13 udpate:- Add a whl file based on `Python` for ease of use. See `release/python` for details.-#### 2021-09-11 update+#### 2021-09-11 udpate:- Add `PP-OCRv2` new model onnx version.- The infering code of the method is unchanged, and the corresponding model can be directly replaced.- After evaluation on its own test set:@@ -76,7 +80,7 @@- Upload the model to [Baidu online disk extraction code: 30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg) or [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing)-#### 2021-08-07 update+#### 2021-08-07 udpate:- TODO:- [ ] PP structure table structure and cell coordinate prediction are being sorted out.@@ -84,26 +88,26 @@- [ ] make dokcer image- [x] try onnxruntime GPU reasoning-#### 2021-07-17 update+#### 2021-07-17 udpate:- Improve the README document- Add **English, number recognition**onnx model, please refer to `python/en_number_ppocr_mobile_v2_rec` for details, the usage is the same as others- Organize [Model to onnx](#model-related)-#### 2021-07-04 update+#### 2021-07-04 udpate:- The python program under the repository can be successfully run on the Raspberry Pi 4B. For more information, please enter the QQ group and ask the group owner- Update the overall structure diagram and add support for Raspberry Pi-#### 2021-06-20 update+#### 2021-06-20 udpate:- Optimize the display of recognition results in ocrweb, and add recognition animations to demonstrate at the same time- Update the `datasets` directory, add some commonly used database links-#### 2021-06-10 update+#### 2021-06-10 udpate:- Add server version text recognition model, see details [Extract code:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)-#### 2021-06-08 update+#### 2021-06-08 udpate:- Organize the warehouse and unify the model download path- Improve related documentation-#### 2021-03-24 update+#### 2021-03-24 udpate:- The new model is fully compatible with ONNXRuntime 1.7 or higher. Special thanks: @Channingss- The performance of the new version of onnxruntime is improved by more than 40% compared to 1.6.0.\ No newline at end of file