diff --git a/PPOCRLabel/README.md b/PPOCRLabel/README.md index 21db1867aa6b6504595096de56b17f01dbf3e4f6..0a1a7536912b6591517050bfa62260aaef6077cd 100644 --- a/PPOCRLabel/README.md +++ b/PPOCRLabel/README.md @@ -86,15 +86,8 @@ PPOCRLabel # [Normal mode] for [detection + recognition] labeling PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` -#### 1.2.2 Build and Install the Whl Package Locally - -```bash -cd PaddleOCR/PPOCRLabel -python3 setup.py bdist_wheel -pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl -``` - -#### 1.2.3 Run PPOCRLabel by Python Script +#### 1.2.2 Run PPOCRLabel by Python Script +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. ```bash cd ./PPOCRLabel # Switch to the PPOCRLabel directory @@ -104,6 +97,13 @@ python PPOCRLabel.py # [Normal mode] for [detection + recognition] labeling python PPOCRLabel.py --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` +#### 1.2.3 Build and Install the Whl Package Locally +Compile and install a new whl package, where 1.0.2 is the version number, you can specify the new version in 'setup.py'. +```bash +cd PaddleOCR/PPOCRLabel +python3 setup.py bdist_wheel +pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl +``` ## 2. Usage diff --git a/PPOCRLabel/README_ch.md b/PPOCRLabel/README_ch.md index f9c736d56e0b1b2a9b0a270149404c6afd4ec2bf..99c088de83f9cba775733a0473b50596683c47ab 100644 --- a/PPOCRLabel/README_ch.md +++ b/PPOCRLabel/README_ch.md @@ -88,7 +88,7 @@ PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+ #### 1.2.2 通过Python脚本运行PPOCRLabel -如果您对PPOCRLabel文件有所更改(例如指定新的内置模型),通过Python脚本运行会更加方面的看到更改的结果。如果仍然需要通过whl包启动,则需要参考下节重新编译whl包。 +如果您对PPOCRLabel文件有所更改(例如指定新的内置模型),通过Python脚本运行会更加方便的看到更改的结果。如果仍然需要通过whl包启动,则需要先卸载当前环境中的whl包,然后参考下节重新编译whl包。 ```bash cd ./PPOCRLabel # 切换到PPOCRLabel目录 @@ -100,11 +100,9 @@ python PPOCRLabel.py --lang ch 编译与安装新的whl包,其中1.0.2为版本号,可在 `setup.py` 中指定新版本。 ```bash -cd ./PPOCRLabel # 切换到PPOCRLabel目录 - -# 选择标签模式来启动 -python PPOCRLabel.py --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签 -python PPOCRLabel.py --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签 +cd PaddleOCR/PPOCRLabel +python3 setup.py bdist_wheel +pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl -i https://mirror.baidu.com/pypi/simple ``` diff --git a/doc/joinus.PNG b/doc/joinus.PNG index 5838a96bc8317178de07a16d246966bf6cc7df63..c31a56ab74a2922ffd2d0eb3d9ba32cac59eceb8 100644 Binary files a/doc/joinus.PNG and b/doc/joinus.PNG differ