A Theremin is an instrument which is played basically by (waving your hands in the air (of course in a precise. controlled manner). Example.
There are two variables involved : the volume and the pitch. One hadn controls the volume (horizontal) and one hand controls the pitch(vertical)
In this project. I used a PS3 Eye camera, the PS3 Move Controller and OpenCV Blob detection to replicate this instrument. The PS3 Move Controller as a sphereical bulb on it's head which glows in several bright colors. The camera captures the live feed with the glowing controller in frame. OpenCV then processes each frame for blob detection and then locates the glowing ball with respect to the frame coordinates. Based on this, location(x,y), the pitch and the volume is decided and thereby a particular frequency(musical note) is played.
PS(14th March 2021) :
Unfortunately I don't have any images for this project.
If anyone wants to play around with the code and make/suggest some changes, it is available on github.