From b559bf3ffdbb62ea69fdf4204ce72fcb4e66c433 Mon Sep 17 00:00:00 2001 From: cdb <494748813@qq.com> Date: Tue, 15 Dec 2020 18:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=AF=86=E5=88=AB=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E9=80=9A=E8=BF=87PyqtSignal=E5=88=86=E6=89=B9emit=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8B=BC=E6=8E=A5=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=90=8E=E7=BB=9F=E4=B8=80emit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PPOCRLabel/libs/autoDialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PPOCRLabel/libs/autoDialog.py b/PPOCRLabel/libs/autoDialog.py index daefe6e6..ca7230ac 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 # 保存 -- GitLab