Skip to content

Commit 480a0df

Browse files
authored
Add files via upload
1 parent 8db603d commit 480a0df

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Create a virtual environment and activate it:
2+
virtualenv -p python env
3+
/env/Scripts/activate
4+
5+
### Install the required packages to run the project:
6+
python -m pip install -r requirements.txt
7+
8+
### Run blinkDetect.py:
9+
python blinkDetect.py
10+
11+
12+
A blink is supposed to last for 300 to 400 milliseconds. So, if the eye remains closed for more than 800-900 ms, we can say that
13+
the person is either drowsy or sleeping. On the other hand, if the eye reopens after just 100ms, its considered an invalid blink
14+
discarded.
15+
16+
P.S: Press 'r' key to reset drowsiness alert and 'esc' to exit.
17+
18+
Project still in progress. Next step is to detect driver's gaze direction.
287 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dlib==19.16.0
2+
numpy==1.15.4
3+
opencv-python==3.4.3.18
4+
playsound==1.2.2
5+
scipy==1.1.0

0 commit comments

Comments
 (0)