alert
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.DS_Store
|
||||||
@@ -114,7 +114,7 @@ def analysis_thread():
|
|||||||
# 核心分析
|
# 核心分析
|
||||||
result = monitor.process_frame(frame)
|
result = monitor.process_frame(frame)
|
||||||
result["eye_close_freq"] = 0
|
result["eye_close_freq"] = 0
|
||||||
result["heart_rate_bpm"] = 0
|
result["heart_rate"] = 0
|
||||||
|
|
||||||
if video_queue.full():
|
if video_queue.full():
|
||||||
video_queue.get_nowait()
|
video_queue.get_nowait()
|
||||||
@@ -402,7 +402,7 @@ def data_upload_thread():
|
|||||||
# 打印日志
|
# 打印日志
|
||||||
id_info = data.get("seat_id", "Unknown")
|
id_info = data.get("seat_id", "Unknown")
|
||||||
print(
|
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))
|
# print(json.dumps(data, indent=2))
|
||||||
|
|
||||||
@@ -583,7 +583,7 @@ def draw_debug_info(frame, result):
|
|||||||
)
|
)
|
||||||
cv2.putText(
|
cv2.putText(
|
||||||
frame,
|
frame,
|
||||||
f"Heart Rate BPM: {result['heart_rate_bpm']}",
|
f"Heart Rate BPM: {result['heart_rate']}",
|
||||||
(20, 210),
|
(20, 210),
|
||||||
cv2.FONT_HERSHEY_SIMPLEX,
|
cv2.FONT_HERSHEY_SIMPLEX,
|
||||||
0.6,
|
0.6,
|
||||||
|
|||||||
Reference in New Issue
Block a user