Software for reducing eye strain which occurs due to constantly staring at digital screen for long periods of time.
Normallly a human blinks about to 10-20 times per minute but due to constant staring at screens this number reduces to about 3-8 times a minute. Eye-Blinker is designed to prevent this very scenario.
- Level 1: Issuing warning stating your blink rate is low.
- Level 2: Adjusting brightness as blink rate is lower than usual.
- Level 3: Prompting the user to look away from the screen for 15 seconds as blink rate is critically low.
- Clone the repository and
cd
intoEye-blinker
. - Check opencv version using
$ python3
>>> import cv2
>>> cv2.__version__
- If not present then install opencv using:
pip install opencv-python
for python 2
pip3 install opencv-python
for python 3 - Install dlib using:
pip install dlib
for python 2
pip3 install dlib
for python 3 - Install PyQt using:
sudo apt-get install python-qt5
for python 2
sudo apt-get install python3-qt5
for python 3 - Run driver.py as:
python3 driver.py
1.driver.py
:Runs the python GUI using multithreading.
2. detect_blinks
: Detects the eyes of the reader and calculates the blinks for each minute.
3. generate_reports
: Generate graph for each session on the basis of blinks.
4. bright.py
: Tweaks the brightness of the screen in level 2.
5. level3.py
: Prompts the user to look away and calculates the time where he looks away in level 3.