This is inspired by Google's Teachable Machines and was created using ml5.js and p5.js. Get the Code here