Skip to content

Commit b275c23

Browse files
committed
updated files
1 parent a14ee66 commit b275c23

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Place an `alarm.wav` file in the project directory. This sound will be played wh
7373
### 1. Running the Script
7474
To start the drowsiness detection system, run:
7575
```bash
76-
python drowsgaurd.py
76+
python drowsigaurd.py
7777
```
7878
This will open the webcam feed and start tracking the driver's eye state, gaze direction, and head pose in real-time.
7979

__pycache__/test.cpython-312.pyc

157 Bytes
Binary file not shown.

drowsiness_log.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,3 +2388,20 @@ Drowsiness detected at 2024-11-21 21:01:51 for 8.82 seconds
23882388
2025-01-08 14:01:21 - Eyes Closed: Sleepy!
23892389
2025-01-08 14:01:22 - Eyes Closed: Sleepy!
23902390
2025-01-08 14:01:22 - Eyes Closed: Sleepy!
2391+
2025-01-08 17:00:29 - Eyes Closed: Drowsy!
2392+
2025-01-08 17:00:30 - Eyes Closed: Drowsy!
2393+
2025-01-08 17:00:30 - Eyes Closed: Drowsy!
2394+
2025-01-08 17:00:36 - Eyes Closed: Drowsy!
2395+
2025-01-08 17:00:36 - Eyes Closed: Drowsy!
2396+
2025-01-08 17:00:36 - Eyes Closed: Drowsy!
2397+
2025-01-08 17:00:37 - Eyes Closed: Drowsy!
2398+
2025-01-08 17:00:37 - Eyes Closed: Drowsy!
2399+
2025-01-08 17:00:37 - Eyes Closed: Drowsy!
2400+
2025-01-08 17:00:37 - Eyes Closed: Drowsy!
2401+
2025-01-08 17:00:38 - Eyes Closed: Drowsy!
2402+
2025-01-08 17:00:38 - Eyes Closed: Drowsy!
2403+
2025-01-08 17:00:38 - Eyes Closed: Drowsy!
2404+
2025-01-08 17:00:38 - Eyes Closed: Drowsy!
2405+
2025-01-08 17:00:39 - Eyes Closed: Sleepy!
2406+
2025-01-08 17:00:39 - Eyes Closed: Sleepy!
2407+
2025-01-08 17:00:39 - Eyes Closed: Sleepy!

test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ def is_drowsy(eye_state_history):
201201
sound.stop()
202202
alert_playing = False
203203
cv2.putText(frame, "Eyes Open: Not Sleepy", (10, height - 20), font, 1, (255, 255, 255), 1, cv2.LINE_AA)
204-
204+
start_time=None
205+
alert_playing=False
206+
cv2.putText(frame, "Eyes Awake", (10, height - 20), font, 1, (0, 255, 0), 1, cv2.LINE_AA)
205207
if score < 0:
206208
score = 0
207209
if score > 3:

0 commit comments

Comments
 (0)