Laser Harp with OpenLase + OpenCV
Channel: marcan
Date: 09/12/2010

Here's a project that I've been meaning to make for a few days and which, thanks to OpenCV and OpenLase, was a snap.

It's pretty simple, there's an independent projection app (OpenLase) and an independent sensing app using a webcam (an EyeToy) and OpenCV with the Python bindings and PyALSA for the MIDI stuff. Just about ~70 lines of code for the projection and ~90 for the sensor portion. Whenever the camera sees a dot move or disappear (from the position it was in when the application is launched), it plays a note.

I've pushed the code to my OpenLase repo at http://git.marcansoft.com/?p=openlase.git . Have fun!