In this workshop we use ML5 as an alternative input method for p5.js, turning pose detection (hands, body, or face) into real-time controls for our sketches. We also train Teachable Machine models and run them in the browser so our own gestures and examples can reliably trigger actions, animations, and interactive responses.
Instagram: @colonelPanix
.png)
ml5.js is a friendly, beginner-oriented machine learning library built on top of TensorFlow.js, designed to work seamlessly alongside p5.js.
The core idea is to make ML accessible to artists, designers, and creative coders — without needing a deep background in data science or Python. It wraps complex TensorFlow.js APIs into simple, high-level calls that feel at home in a p5.js sketch.
What it can do:
Most of the ML5 sketches we will work on will have the following format. (Note that this will only work if you add the ml5 library to the index.html (See getting started in ml5)