Skip to content
Minit Jain
← Work

TensorFlow.js Expression Detector

Browser-based real-time emotion recognition, no server-side inference.

Soloshippedrepodemo
Screenshot of TensorFlow.js Expression Detector

Overview

Real-time facial expression detection running entirely in the browser via TensorFlow.js, so no video frame ever leaves the client.

Why I built it

Wanted to see how far client-side ML inference could go for a latency-sensitive, privacy-sensitive task like facial expression detection, without a server round-trip per frame.

Architecture

Vanilla JavaScript, TensorFlow.js for in-browser model inference against the webcam feed, no backend.

Client (only)vanilla javascript · tensorflow.js · webcam via getUserMedia

Challenges

Keeping inference fast enough for a smooth real-time feel entirely on the client's hardware, with no server to fall back on for the heavy lifting.

Outcome

Live demo running real-time expression detection fully client-side.

Tech used

javascripttensorflowjs