From d6fd98dfab7fdef6196a8da473d359d6cf305123 Mon Sep 17 00:00:00 2001 From: Leif <4603009@qq.com> Date: Wed, 16 Dec 2020 12:52:26 +0800 Subject: [PATCH] Update readme --- PPOCRLabel/README.md | 5 +++++ PPOCRLabel/README_ch.md | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PPOCRLabel/README.md b/PPOCRLabel/README.md index f72ae966..7276213f 100644 --- a/PPOCRLabel/README.md +++ b/PPOCRLabel/README.md @@ -120,6 +120,11 @@ For some data that are difficult to recognize, the recognition results will not ``` pyrcc5 -o libs/resources.py resources.qrc ``` +- If you get an error ``` module 'cv2' has no attribute 'INTER_NEAREST'```, you need to delete all opencv related packages first, and then reinstall the headless version of opencv + ``` + pip install opencv-contrib-python-headless + ``` + ### Related 1.[Tzutalin. LabelImg. Git code (2015)](https://github.com/tzutalin/labelImg) diff --git a/PPOCRLabel/README_ch.md b/PPOCRLabel/README_ch.md index 334cb286..01513ba7 100644 --- a/PPOCRLabel/README_ch.md +++ b/PPOCRLabel/README_ch.md @@ -88,15 +88,23 @@ python3 PPOCRLabel.py --lang ch ### 错误提示 - 如果同时使用whl包安装了paddleocr,其优先级大于通过paddleocr.py调用PaddleOCR类,whl包未更新时会导致程序异常。 + - PPOCRLabel**不支持对中文文件名**的图片进行自动标注。 + - 针对Linux用户::如果您在打开软件过程中出现**objc[XXXXX]**开头的错误,证明您的opencv版本太高,建议安装4.2版本: ``` pip install opencv-python==4.2.0.32 ``` -- 如果出现''Missing string id '开头的错误,需要重新编译资源: + +- 如果出现 ```Missing string id``` 开头的错误,需要重新编译资源: ``` pyrcc5 -o libs/resources.py resources.qrc ``` + +- 如果出现``` module 'cv2' has no attribute 'INTER_NEAREST'```错误,需要首先删除所有opencv相关包,然后重新安装headless版本的opencv + ``` + pip install opencv-contrib-python-headless + ``` ### 参考资料 1.[Tzutalin. LabelImg. Git code (2015)](https://github.com/tzutalin/labelImg) -- GitLab