CP2: Blob Detection – Webcam Tracking in p5.js
Channel: Jeff Thompson
Date: 2021-03-04

Color detection is super simple with basic p5.js commands; object detection is really complicated and uses neural networks trained on hundreds of
thousands of images. Somewhere in the middle is blob detection, which looks for areas of black in a thresholded image.

Try out different images to see the way this handles them (and the limitations too)! Note that this won't be great for realtime video without some extra optimization.

👩‍💻 https://editor.p5js.org/jeffThompson/sketches/rFeSWevtU

ALL THE VIDEOS IN THIS UNIT
🎥 https://www.youtube.com/playlist?list=PLsGCUnpinsDmghIwGww77MRn1vvKjPVqV

REQUIRES
💡 Hull.js by Andrii Heonia (https://github.com/AndriiHeonia/hull)

CHALLENGES
❓ Can you feed your webcam into the blob detection?