mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 05:50:49 +08:00
RapidOCR Web Demo
相关问题
- 各个阶段使用的模型以及配置参数有哪些?
- 使用模型搭配(最优组合)为:
ch_PP-OCRv3_det + ch_ppocr_mobile_v2.0_cls + ch_PP-OCRv3_rec - 所有相关参数配置参见当前目录下的
config.yaml文件 - 其中给出了使用模型,以及具体参数,参数具体介绍参见:Link
- 使用模型搭配(最优组合)为:
- 网页上显示的推理时间可以具体解释一下吗?
运行
-
安装
requirements.txt下相关包pip install -r requirements.txt -i https://pypi.douban.com/simple/ -
下载
resources目录- 下载链接:百度网盘 | Google Drive
- 最终目录结构如下:
ocrweb ├── README.md ├── config.yaml ├── main.py ├── requirements.txt ├── task.py ├── rapidocr_onnxruntime │ ├── __init__.py │ ├── ch_ppocr_v2_cls │ ├── ch_ppocr_v2_det │ ├── ch_ppocr_v2_rec │ └── rapid_ocr_api.py ├── resources │ ├── models │ │ ├── ch_PP-OCRv3_det_infer.onnx │ │ ├── ch_ppocr_mobile_v2.0_cls_infer.onnx │ │ └── ch_PP-OCRv3_rec_infer.onnx │ └── rec_dict │ └── ppocr_keys_v1.txt ├── static │ ├── css │ └── js └── templates └── index.html
-
运行
main.pypython main.py -
打开
http://0.0.0.0:9003/即可, enjoy it!
