Our Hack-The-Midlands project
Blinkbot and NodOff are two projects that we developed at HackTheMidlands 4.0 which center around improving computer user health and accessibility. Blinkbot detects the user's blinking frequency and alerts them if they need to blink more. NodOff allows a user to log off their system simply by nodding twice at their screen. Blinkbot uses Twilio's phonecall API. Both use OpenCV and Dlib.
Videos
Blinkbot: https://photos.app.goo.gl/SKEQ5dtMnQW5dn646
NodOff: https://photos.app.goo.gl/wdv5hSbbBGJmdpCN9
- Python >=3.5
- Webcam or another video stream
- Install pip3
$ apt install python3-pip
- Install virtualenv
$ pip3 install virtualenv
- Add the following lines to
.bashrc
to configure virtualenv for python3
# Virtual Environment Wrapper
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
- Clone the repository and create a virtualenv for development
$ git clone https://github.com/AryamanReddi99/Hack-The-Midlands.git
$ cd Hack-The-Midlands
$ mkvirtualenv Hack-The-Midlands
- Select the virtualenv
$ workon Hack-The-Midlands
- Install dependencies
$ pip3 install opencv-python numpy scipy dlib imutils
- Download and extract a pre-trained shape predictor
$ wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
- Run the detect_blinks demo
$ python3 detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat