Commit 22d0ee23 authored by YONG-LIN SU's avatar YONG-LIN SU

備份

parent 39af5ece
Pipeline #5 canceled with stages
......@@ -54,6 +54,8 @@ class Main(QMainWindow, ui.Ui_MainWindow):
self.black_line = 34
self.save_file = "./logs/{}.txt".format(self.osd.str_time)
self.timer = QTimer(self)
self.timer.timeout.connect(self.capture)
self.timer.start(10)
......@@ -118,7 +120,9 @@ class Main(QMainWindow, ui.Ui_MainWindow):
qp.drawRect(face_rect)
qp.drawText(face_rect, Qt.AlignCenter , "{:.2f}".format(corrected_face_temp))
thermal_qp.drawRect(thermal_rect)
# 儲存
with open(self.save_file,'a') as f:
f.write("{} {} {} {} {}\n".format(str_time, face_temp, blackbody_max, heater_temp, corrected_face_temp))
# 繪製黑體範圍底線
thermal_qp.setPen(QPen(Qt.red, 3))
thermal_qp.drawLine(0, self.black_line, 160, self.black_line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment