📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Unified ocrweb module name
SWHL3d95441b95ed
diff --git a/ocrweb/README.md b/ocrweb/README.mdindex 31c3e5f..ac2dead 100755--- a/ocrweb/README.md+++ b/ocrweb/README.md@@ -1,14 +1,9 @@## RapidOCR Web Demo-### 相关问题-1. 各个阶段使用的模型以及配置参数有哪些?- - 使用模型搭配(最优组合)为:`ch_PP-OCRv3_det + ch_ppocr_mobile_v2.0_cls + ch_PP-OCRv3_rec`- - 所有相关参数配置参见当前目录下的`config.yaml`文件- - 其中给出了使用模型,以及具体参数,参数具体介绍参见:[Link](https://github.com/RapidAI/RapidOCR/blob/main/python/README.md#configyaml%E4%B8%AD%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D)-2. 网页上显示的推理时间可以具体解释一下吗?- <div align="center">- <img src="../assets/ocrweb_time.jpg" width="80%" height="80%">- </div>+- [RapidOCR Web Demo](#rapidocr-web-demo)+ - [Web方式运行](#web方式运行)+ - [以API方式运行和调用](#以api方式运行和调用)+ - [相关问题](#相关问题)### Web方式运行1. 安装`requirements.txt`下相关包@@ -104,4 +99,14 @@5. 输出以下结果,即为正确。```text[['0', '香港深圳抽血', '0.93583983'], ['1', '专业查性别', '0.89865875'], ['2', '专业鉴定B超单', '0.9955703'], ['3', 'b超仪器查性别', '0.99489486'], ['4', '加微信eee', '0.99073666'], ['5', '可邮寄', '0.99923944']]- ```\ No newline at end of file+ ```++### 相关问题+1. 各个阶段使用的模型以及配置参数有哪些?+ - 使用模型搭配(最优组合)为:`ch_PP-OCRv3_det + ch_ppocr_mobile_v2.0_cls + ch_PP-OCRv3_rec`+ - 所有相关参数配置参见当前目录下的`config.yaml`文件+ - 其中给出了使用模型,以及具体参数,参数具体介绍参见:[Link](https://github.com/RapidAI/RapidOCR/blob/main/python/README.md#configyaml%E4%B8%AD%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D)+2. 网页上显示的推理时间可以具体解释一下吗?+ <div align="center">+ <img src="../assets/ocrweb_time.jpg" width="80%" height="80%">+ </div>\ No newline at end of filediff --git a/ocrweb/config.yaml b/ocrweb/config.yamlindex 9eb61d1..adba1b9 100644--- a/ocrweb/config.yaml+++ b/ocrweb/config.yaml@@ -6,7 +6,7 @@ Global:width_height_ratio: 8Det:- module_name: ch_ppocr_v2_det+ module_name: ch_ppocr_v3_detclass_name: TextDetectormodel_path: resources/models/ch_PP-OCRv3_det_infer.onnx@@ -56,7 +56,7 @@ Cls:label_list: ['0', '180']Rec:- module_name: ch_ppocr_v2_rec+ module_name: ch_ppocr_v3_recclass_name: TextRecognizermodel_path: resources/models/ch_PP-OCRv3_rec_infer.onnxdiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/__init__.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/__init__.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/__init__.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/__init__.pydiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yaml b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/config.yamlsimilarity index 88%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yamlrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/config.yamlindex 428ccfc..bafce72 100644--- a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yaml+++ b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/config.yaml@@ -1,4 +1,4 @@-model_path: G:\ProgramFiles\_self\RapidOCR\python\resources\models\ch_PP-OCRv2_det_infer.onnx+model_path: resources/models/ch_PP-OCRv3_det_infer.onnxuse_cuda: false# Details of the params: https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.htmldiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/text_detect.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/text_detect.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/text_detect.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/text_detect.pydiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/utils.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/utils.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_det/utils.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_det/utils.pydiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/__init__.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/__init__.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/__init__.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/__init__.pydiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yaml b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yamlsimilarity index 86%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yamlrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yamlindex ffcfc1d..5df6390 100644--- a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yaml+++ b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yaml@@ -1,4 +1,4 @@-model_path: resources/models/ch_ppocr_server_v2.0_rec_infer.onnx+model_path: resources/models/ch_PP-OCRv3_rec_infer.onnxuse_cuda: false# Details of the params: https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.htmldiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/text_recognize.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/text_recognize.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/text_recognize.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/text_recognize.pydiff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/utils.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.pysimilarity index 100%rename from ocrweb/rapidocr_onnxruntime/ch_ppocr_v2_rec/utils.pyrename to ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py