Gesture-controlled smart home (light bulb)






For this week’s assignment, I made a gesture-controlled smart light bulb that lets the user to control lights using five hand gestures. A closed fist (rock) turns the lights off, while an open hand (paper) turns them on with white light. Pointing with your index finger sets the lights to red, a thumbs up changes them to blue, and making an OK sign (thumb and index finger touching in a circle) sets them to green. You first need to train it by making each gesture 15-20 times while clicking the corresponding training button, then clicking "Train model" to teach the computer to recognize your gestures. Once trained, simply make any gesture and hold it steady for one second, and you'll see the lights change accordingly.
Demo:
https://drive.google.com/file/d/1TjVWNWcNu-Y68PmFVeiFSyaQP3ht9YwO/view?usp=sharing
p5.js sketch: