This commit is contained in:
2026-02-28 10:17:15 +08:00
parent 1b9f05c9a8
commit 26ff511ddc
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.DS_Store

View File

@@ -114,7 +114,7 @@ def analysis_thread():
# 核心分析
result = monitor.process_frame(frame)
result["eye_close_freq"] = 0
result["heart_rate_bpm"] = 0
result["heart_rate"] = 0
if video_queue.full():
video_queue.get_nowait()
@@ -402,7 +402,7 @@ def data_upload_thread():
# 打印日志
id_info = data.get("seat_id", "Unknown")
print(
f"[Data Upload {i+1}/{BURST_COUNT}] {id_info} | Time:{data['time']}"
f"[Data Upload {i+1}/{BURST_COUNT}] {id_info} | Time:{data['timestamp']}"
)
# print(json.dumps(data, indent=2))
@@ -583,7 +583,7 @@ def draw_debug_info(frame, result):
)
cv2.putText(
frame,
f"Heart Rate BPM: {result['heart_rate_bpm']}",
f"Heart Rate BPM: {result['heart_rate']}",
(20, 210),
cv2.FONT_HERSHEY_SIMPLEX,
0.6,