Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 442487b

Browse files
committedApr 8, 2022
Update the README of PPOCRLabel
Update the README of PPOCRLabel
1 parent bf77ac0 commit 442487b

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed
 

‎PPOCRLabel/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,8 @@ PPOCRLabel # [Normal mode] for [detection + recognition] labeling
8686
PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling
8787
```
8888

89-
#### 1.2.2 Build and Install the Whl Package Locally
90-
91-
```bash
92-
cd PaddleOCR/PPOCRLabel
93-
python3 setup.py bdist_wheel
94-
pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl
95-
```
96-
97-
#### 1.2.3 Run PPOCRLabel by Python Script
89+
#### 1.2.2 Run PPOCRLabel by Python Script
90+
If you modify the PPOCRLabel file (for example, specifying a new built-in model), it will be more convenient to see the results by running the Python script. If you still want to start with the whl package, you need to uninstall the whl package in the current environment and then recompile it according to the next section.
9891

9992
```bash
10093
cd ./PPOCRLabel # Switch to the PPOCRLabel directory
@@ -104,6 +97,13 @@ python PPOCRLabel.py # [Normal mode] for [detection + recognition] labeling
10497
python PPOCRLabel.py --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling
10598
```
10699

100+
#### 1.2.3 Build and Install the Whl Package Locally
101+
Compile and install a new whl package, where 1.0.2 is the version number, you can specify the new version in 'setup.py'.
102+
```bash
103+
cd PaddleOCR/PPOCRLabel
104+
python3 setup.py bdist_wheel
105+
pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl
106+
```
107107

108108

109109
## 2. Usage

‎PPOCRLabel/README_ch.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+
8888
8989
#### 1.2.2 通过Python脚本运行PPOCRLabel
9090

91-
如果您对PPOCRLabel文件有所更改(例如指定新的内置模型),通过Python脚本运行会更加方面的看到更改的结果。如果仍然需要通过whl包启动,则需要参考下节重新编译whl包
91+
如果您对PPOCRLabel文件有所更改(例如指定新的内置模型),通过Python脚本运行会更加方便的看到更改的结果。如果仍然需要通过whl包启动,则需要先卸载当前环境中的whl包,然后参考下节重新编译whl包
9292

9393
```bash
9494
cd ./PPOCRLabel # 切换到PPOCRLabel目录
@@ -100,11 +100,9 @@ python PPOCRLabel.py --lang ch
100100
编译与安装新的whl包,其中1.0.2为版本号,可在 `setup.py` 中指定新版本。
101101

102102
```bash
103-
cd ./PPOCRLabel # 切换到PPOCRLabel目录
104-
105-
# 选择标签模式来启动
106-
python PPOCRLabel.py --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签
107-
python PPOCRLabel.py --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签
103+
cd PaddleOCR/PPOCRLabel
104+
python3 setup.py bdist_wheel
105+
pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl -i https://mirror.baidu.com/pypi/simple
108106
```
109107

110108

0 commit comments

Comments
 (0)
Failed to load comments.