Face & Affect
Detect faces, locate landmarks, and classify expression. Smile is derived from mouth landmark geometry; emotion comes from a 7-class FER classifier.
Runs onface-api.js
01 / 06 capability
Face & Affect

Live readout
Running…
How it works
A frame is passed to a single face detector, which returns bounding boxes and 68 facial landmarks. From the landmarks, mouth-corner spread plus lip-curvature gives a smile signal without a second model. The same cropped face is fed in parallel to a small CNN trained on FER-derived data, returning probabilities across happy, sad, angry, surprised, fearful, disgusted, and neutral.
Build / Buy / Fine-tune
Browser (off-the-shelf)
What's running on this page right now.
Cloud API
Use when you need stronger edge-case accuracy or already pay for the vendor.
Custom fine-tune
Worth it when off-the-shelf misses your domain, masked faces, low-light, specific demographics.
When to choose whichDefault to browser. Move to cloud only when off-the-shelf accuracy on your edge cases is unacceptable AND privacy/latency don't block it. Fine-tune only when both fail.
Where it shows up
- Voice-agent sentiment routing, detect frustration mid-call and escalate
- UX research observation, capture reaction timelines without recording video
- Accessibility, emotion overlays for users training on social cue recognition