TRY IT HERE https://mruanova.com/ml5/index.html
Using Transfer Learning and a dataset in this example I am using ML5 to recognize when I a wearing sunglasses or a water bottle using video capture on my webcam following this tutorial https://www.youtube.com/watch?v=eeO-rWYFuG0