A lightweight, real-time image classification tool built with ml5.js (MobileNet) and p5.js. It performs Transfer Learning entirely in the browser, allowing users to train a custom model using their webcam without backend processing.
Try it here: redlightgreenlightml.netlify.app
- Use the Red/Blue buttons to capture ~15 labeled images for each category from your webcam.
- Click Train Model to retrain the feature extractor.
- Once trained, the app classifies the live video feed and updates the DOM dynamically.
- ml5.js (Feature extraction & Transfer Learning)
- p5.js (DOM manipulation)
- Vanilla JS/HTML/CSS