Spaces:
Sleeping
Sleeping
Update config.yaml
Browse files- config.yaml +5 -5
config.yaml
CHANGED
@@ -12,15 +12,15 @@ detection_strategy: "geometric"
|
|
12 |
# Parameters for the facial landmark-based detection methods.
|
13 |
geometric_settings:
|
14 |
downsize_factor: 0.5
|
15 |
-
skip_frames:
|
16 |
low_light_thresh: 60
|
17 |
eye_ar_thresh: 0.24 # Increased: Catches squinting
|
18 |
-
eye_ar_consec_frames:
|
19 |
yawn_mar_thresh: 0.5 # Decreased: Catches smaller yawns
|
20 |
-
yawn_consec_frames:
|
21 |
head_nod_thresh: 15.0 # Decreased: Catches smaller nods
|
22 |
head_look_away_thresh: 18.0 # Decreased: Catches smaller head turns
|
23 |
-
head_pose_consec_frames:
|
24 |
indicator_weights:
|
25 |
eye_closure: 1
|
26 |
yawning: 1
|
@@ -49,7 +49,7 @@ hybrid_settings:
|
|
49 |
# -- Alerting System --
|
50 |
alerting:
|
51 |
alert_sound_path: "assets/alert.wav"
|
52 |
-
alert_cooldown_seconds:
|
53 |
|
54 |
# -- Gemini API (Optional) --
|
55 |
gemini_api:
|
|
|
12 |
# Parameters for the facial landmark-based detection methods.
|
13 |
geometric_settings:
|
14 |
downsize_factor: 0.5
|
15 |
+
skip_frames: 4
|
16 |
low_light_thresh: 60
|
17 |
eye_ar_thresh: 0.24 # Increased: Catches squinting
|
18 |
+
eye_ar_consec_frames: 15 # Decreased: Faster eye closure detection
|
19 |
yawn_mar_thresh: 0.5 # Decreased: Catches smaller yawns
|
20 |
+
yawn_consec_frames: 15 # Decreased: Faster yawn detection
|
21 |
head_nod_thresh: 15.0 # Decreased: Catches smaller nods
|
22 |
head_look_away_thresh: 18.0 # Decreased: Catches smaller head turns
|
23 |
+
head_pose_consec_frames: 15 # Decreased: Faster head pose detection
|
24 |
indicator_weights:
|
25 |
eye_closure: 1
|
26 |
yawning: 1
|
|
|
49 |
# -- Alerting System --
|
50 |
alerting:
|
51 |
alert_sound_path: "assets/alert.wav"
|
52 |
+
alert_cooldown_seconds: 5 # Increased cooldown to prevent alert fatigue
|
53 |
|
54 |
# -- Gemini API (Optional) --
|
55 |
gemini_api:
|