From 26ff511ddccb0250f7895ebc819dae8627bcec10 Mon Sep 17 00:00:00 2001 From: coldenMac <1119472557@qq.com> Date: Sat, 28 Feb 2026 10:17:15 +0800 Subject: [PATCH] alert --- .gitignore | 1 + reproject/main.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/reproject/main.py b/reproject/main.py index 294308e..fb87e4b 100644 --- a/reproject/main.py +++ b/reproject/main.py @@ -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,