Skip to content

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update README

SWHLb1982fdc9b25
diff --git a/python/README.md b/python/README.md
index c0ab6d4..88debd2 100755
--- a/python/README.md
+++ b/python/README.md
@@ -73,7 +73,7 @@
### 源码使用步骤
1. 下载整个项目到本地
```shell
- $ cd RapidOCR/python
+ cd RapidOCR/python
```
2. 下载链接下的`resources`目录(包含模型和显示的字体文件)
@@ -120,23 +120,22 @@
3. 安装运行环境
- 基于onnxruntime推理所需环境安装:
```bash
- $ pip install onnxruntime>=1.7.0
+ pip install onnxruntime>=1.7.0
- $ pip install -r requirements.txt
+ pip install -r requirements.txt
```
- 基于openvino推理所需环境安装:
```bash
- $ pip install openvino
+ pip install openvino
- $ pip install -r requirements.txt
+ pip install -r requirements.txt
```
- Note: 在Windows端,Shapely库自动安装可能会有问题,解决方案参见[Q15](../docs/FAQ.md#q-windows系统下装完环境之后运行示例程序之后报错oserror-winerror-126-找不到指定的模組)
4. 运行示例
- 运行单元测试
```bash
- $ cd tests
- $ pytest test_*.py
+ pytest tests/test_*.py
```
- 接口调用
```python
@@ -161,7 +160,7 @@
```
- 直接运行`demo.py`,可直接可视化查看结果。
```bash
- $ python demo.py
+ python demo.py
```
### [`config.yaml`](./rapidocr_onnxruntime/config.yaml)中常用参数介绍
@@ -218,9 +217,9 @@
- 以上两个版本的对应关系,可参考[博客](https://blog.csdn.net/weixin_39518984/article/details/111406728)
- 具体安装命令如下:
```bash
- $ conda install cudatoolkit=11.6.0
- $ conda install cudnn=8.3.2.44
- $ pip install onnxruntime-gpu==1.12.0
+ conda install cudatoolkit=11.6.0
+ conda install cudnn=8.3.2.44
+ pip install onnxruntime-gpu==1.12.0
```
- 验证是否可以`onnxruntime-gpu`正常调用GPU
1. 验证`get_device()`是否可返回GPU