未验证 提交 3a20ddd6 编写于 作者: D Double_V 提交者: GitHub

Merge pull request #1432 from cdb494748813/develop

修改PPOCRLabel,避免程序运行速度越来越慢
......@@ -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
# 保存
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册