diff --git a/PPOCRLabel/libs/autoDialog.py b/PPOCRLabel/libs/autoDialog.py index daefe6e63af2651ff1604c47762b6a6bba4cb001..ff19fe4678a1af49855650e77993cc6f3de343ed 100644 --- a/PPOCRLabel/libs/autoDialog.py +++ b/PPOCRLabel/libs/autoDialog.py @@ -41,11 +41,14 @@ class Worker(QThread): print('Can not recognise file is : ', Imgpath) pass else: + strs = '' for res in self.result_dic: chars = res[1][0] cond = res[1][1] posi = res[0] - self.listValue.emit("Transcription: " + chars + " Probability: " + str(cond) + " Location: " + json.dumps(posi)) + strs += "Transcription: " + chars + " Probability: " + str(cond) + " Location: " + json.dumps(posi) + # Sending large amounts of data repeatedly through pyqtSignal may affect the program efficiency + # self.listValue.emit(strs) # It is better to remove this line self.mainThread.result_dic = self.result_dic self.mainThread.filePath = Imgpath # 保存 diff --git a/deploy/lite/readme.md b/deploy/lite/readme.md index 3bc6f2866ce63dc8103815cf6c9ebc772ee671af..e678b2f6164dbfb82c690b55b43f9f66055a24ef 100644 --- a/deploy/lite/readme.md +++ b/deploy/lite/readme.md @@ -11,6 +11,8 @@ Paddle Lite是飞桨轻量化推理引擎,为手机、IOT端提供高效推理 - 电脑(编译Paddle Lite) - 安卓手机(armv7或armv8) +***注意: PaddleOCR 移动端部署当前不支持动态图模型,只支持静态图保存的模型。当前PaddleOCR静态图的分支是`develop`。*** + ### 1.1 准备交叉编译环境 交叉编译环境用于编译 Paddle Lite 和 PaddleOCR 的C++ demo。 支持多种开发环境,不同开发环境的编译流程请参考对应文档。 diff --git a/deploy/lite/readme_en.md b/deploy/lite/readme_en.md index d72e0b9ce9c71fab72e8cc7042cc0338a5fabcde..0780525420c41f3609a17f50de4668a9b1f2568e 100644 --- a/deploy/lite/readme_en.md +++ b/deploy/lite/readme_en.md @@ -13,6 +13,8 @@ deployment solutions for end-side deployment issues. - Computer (for Compiling Paddle Lite) - Mobile phone (arm7 or arm8) +***Note: PaddleOCR lite deployment currently does not support dynamic graph models, only models saved with static graph. The static branch of PaddleOCR is `develop`.*** + ## 2. Build PaddleLite library 1. [Docker](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#docker) 2. [Linux](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#linux)