This project is a fun modification to the orignal T-REX game that has popped on our screens many a time when the internet connection was down. In this modification the jump of the t-rex is controlled by blinking of the eyes instead of pressing the space bar or arrow keys.
This project incorporates the ideas of pre-trained HOG detectors for detection of the eye blink and Flask with SocketIO for communication between the client javascript game and the server.
I have used a second client that uses Javascript to read video from the webcam and send the video frame by frame to the server where the frame was processed using pre-trained HOG detectors to detect blinking.
If blinking was detected, a message was broadcasted and when received by the first client, triggered the jump action.