mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 22:10:55 +08:00
相关问题
- 各个阶段使用的模型有哪些?
可以从
task.py中看到det_model_path = 'resources/models/ch_PP-OCRv2_det_infer.onnx' cls_model_path = 'resources/models/ch_ppocr_mobile_v2.0_cls_infer.onnx' rec_model_path = 'resources/models/ch_ppocr_mobile_v2.0_rec_infer.onnx' - 网页上显示的推理时间可以具体解释一下吗?
- OCR各个阶段的参数值都从哪里可以看到?
- 从各个阶段的目录下对应类的初始化函数可以看到
运行
-
安装
requirements.txt下相关包pip install -r requirements.txt -
相关模型
- 下载链接:提取码:30jv
- 将模型放到
models目录即可
-
运行
main.pypython main.py -
打开
http://127.0.0.1:9003/,即可
目录结构
.
├── main.py
├── README.md
├── resources
│ ├── rapidOCR.py
│ ├── ch_ppocr_mobile_v2_cls
│ ├── ch_ppocr_mobile_v2_det
│ ├── ch_ppocr_mobile_v2_rec
│ ├── __init__.py
│ └── models
├── static
│ ├── css
│ └── js
├── task.py
└── templates
└── index.html
