alert
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user