diff --git a/PPOCRLabel/README.md b/PPOCRLabel/README.md index f72ae96679d9ca3ba1585c49ce8762cd73e97d24..7276213f14983ea8b401e6ccf64d93d0f6d6ba13 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 334cb2860848dd7def22c537b0e10cd5a9435289..01513ba7070bea5af88f1148c3f7d8e52ce2a349 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)