提交 cc9d9e5c 编写于 作者: cdb494748813's avatar cdb494748813

通过信号反复发送大量数据可能影响程序运行效率,最好注释掉此句,不发送识别结果到界面滚动显示

上级 b559bf3f
...@@ -48,7 +48,7 @@ class Worker(QThread): ...@@ -48,7 +48,7 @@ class Worker(QThread):
posi = res[0] posi = res[0]
strs += "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 # 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.listValue.emit(strs) # It is better to remove this line
self.mainThread.result_dic = self.result_dic self.mainThread.result_dic = self.result_dic
self.mainThread.filePath = Imgpath self.mainThread.filePath = Imgpath
# 保存 # 保存
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册