diff --git a/PPOCRLabel/libs/autoDialog.py b/PPOCRLabel/libs/autoDialog.py index daefe6e63af2651ff1604c47762b6a6bba4cb001..ca7230ac0cc1b81bc55d9085b9e931c58b483370 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 # 保存