From 7ad60ca5689fcf27827eae230168713344cc0ddb Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Wed, 2 Mar 2022 10:12:14 +0800 Subject: [PATCH] Fix doc, Make it easier for user to run PPOCRLabel --- PPOCRLabel/README.md | 8 ++++++++ PPOCRLabel/README_ch.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/PPOCRLabel/README.md b/PPOCRLabel/README.md index 0e0fc546..61ebbe92 100644 --- a/PPOCRLabel/README.md +++ b/PPOCRLabel/README.md @@ -54,6 +54,8 @@ PPOCRLabel can be started in two ways: whl package and Python script. The whl pa ```bash pip install PPOCRLabel # install + +# Select label mode and run PPOCRLabel # [Normal mode] for [detection + recognition] labeling PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` @@ -68,6 +70,8 @@ PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extrac ```bash pip3 install PPOCRLabel pip3 install trash-cli + +# Select label mode and run PPOCRLabel # [Normal mode] for [detection + recognition] labeling PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` @@ -76,6 +80,8 @@ PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extrac ```bash pip3 install PPOCRLabel pip3 install opencv-contrib-python-headless==4.2.0.32 + +# Select label mode and run PPOCRLabel # [Normal mode] for [detection + recognition] labeling PPOCRLabel --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` @@ -92,6 +98,8 @@ pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl ```bash cd ./PPOCRLabel # Switch to the PPOCRLabel directory + +# Select label mode and run python PPOCRLabel.py # [Normal mode] for [detection + recognition] labeling python PPOCRLabel.py --kie True # [KIE mode] for [detection + recognition + keyword extraction] labeling ``` diff --git a/PPOCRLabel/README_ch.md b/PPOCRLabel/README_ch.md index 917486b7..18ffea53 100644 --- a/PPOCRLabel/README_ch.md +++ b/PPOCRLabel/README_ch.md @@ -57,6 +57,8 @@ PPOCRLabel可通过whl包与Python脚本两种方式启动,whl包形式启动 ```bash pip install PPOCRLabel # 安装 + +# 选择标签模式来启动 PPOCRLabel --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签 PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签 ``` @@ -66,6 +68,8 @@ PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+ ```bash pip3 install PPOCRLabel pip3 install trash-cli + +# 选择标签模式来启动 PPOCRLabel --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签 PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签 ``` @@ -74,6 +78,8 @@ PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+ ```bash pip3 install PPOCRLabel pip3 install opencv-contrib-python-headless==4.2.0.32 # 如果下载过慢请添加"-i https://mirror.baidu.com/pypi/simple" + +# 选择标签模式来启动 PPOCRLabel --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签 PPOCRLabel --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签 ``` @@ -94,6 +100,8 @@ pip3 install dist/PPOCRLabel-1.0.2-py2.py3-none-any.whl -i https://mirror.baidu. ```bash cd ./PPOCRLabel # 切换到PPOCRLabel目录 + +# 选择标签模式来启动 python PPOCRLabel.py --lang ch # 启动【普通模式】,用于打【检测+识别】场景的标签 python PPOCRLabel.py --lang ch --kie True # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签 ``` -- GitLab