Skip to content
Using OpenCV to detect blinking and FluidSynth to play piano sounds on blink
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Made to detect blinking and play piano sounds on blink. Uses the Python bindings for OpenCV and FluidSynth.

This was hacked together very quickly for an art project.

See for more.


Made for Python 3

git clone

cd eye-contact-opencv

pip install -r requirements.txt


You're going to need to have installed OpenCV (3 is used here) and FluidSynth. You can use brew to install these. You'll also need a SoundFont. I use 'Nice-Keys-Giga-JNv1.7.sf2'. Expect to need to modify

You can’t perform that action at this time.