This week I wanted to take some time to experiment further with p5.js. Like many of us, p5 is something I’ve used often in the past, and introducing ML into the picture is an awesome concept. Since I intend for my final project to be focused on an LED output, I tried to mimic that workflow within this assignment. I created a Light hand tracking KNN Classifier, that increases the “brightness” of a light drawing on the canvas from low, medium, and high based on the number of fingers detected (☝️,✌️, or three).

MLp5light.mov

Try it out here: p5 editor