ToolyStation

Live Emotion DetectorBeta

Reads your facial expression through the webcam and shows a live bar chart across seven emotions, from happy to surprised. The video is analyzed in your browser and never sent to a server.

Press "Turn on camera" to start.

Current expression

Turn on the camera to begin.

Related guides

About this tool

This is a hands-on demo that finds your face in the webcam feed and shows how closely your expression matches seven categories: happy, sad, angry, surprised, fearful, disgusted and neutral. The bars move as soon as your face changes, so you can see for yourself how facial-expression AI responds.

It uses the face detection and expression models from the open-source face-api.js library (the @vladmandic build). The models are downloaded from a public CDN the first time you start the camera, and all video analysis runs in your browser. The numbers are an estimate of which expression your face looks like, not a judgment of how you actually feel.

When it comes in handy

Practicing expressions

Before an interview, a talk or a photo shoot, check whether your smile actually reads as "happy" and what your nervous face looks like.

Teaching how AI sees faces

Let students pull faces at the camera to see what the model reacts to and where it gets things wrong.

A quick check before a video call

See whether you look tense or flat before you join a meeting.

How to use it

  1. 1

    Click "Turn on camera". The first time, "Loading AI model..." appears for a few seconds.

  2. 2

    Allow camera access when your browser asks.

  3. 3

    Sit with your face near the center of the frame. A box appears around your face, and "Current expression" shows the split across seven emotions.

  4. 4

    Use "Side panel" or "Overlay" to place the results next to the video or on top of it.

  5. 5

    When you're done, click "Turn off camera". Closing the tab also turns the camera off.

How it works and how to read the results

It works in two steps

First, a face detection model finds the rectangle containing a face in the video frame. Then an expression model looks only at that crop and estimates which of the seven expressions it resembles. If no face is detected, no expression is calculated at all, so when results look odd, start by checking that the face box is being drawn properly.

The seven bars add up to 100%

The expression model splits a total probability of 1 across the seven expressions. When one goes up, the others go down, and the highest is shown in bold. "Happy 60%" doesn't mean your happiness is at level 60; it means the model gives a 60% share to this face being a happy expression.

The number on the box isn't an emotion

The figure next to the blue box around your face, such as 0.87, is a detection score: how likely it is that this region is a face. Anything below 0.5 isn't accepted as a face. If the score hovers around 0.5 and the box flickers, the lighting or angle is working against detection.

Every frame is calculated fresh

Results aren't averaged with previous frames; each frame is calculated from scratch. That makes the chart react instantly when your expression changes, but it also wobbles a little even when you're still. How often it updates depends on your device, and on slower devices the bars may move in jumps.

Tips for specific situations

For a clear reading

Sit with the light in front of your face and adjust your distance so your face fills roughly a third of the frame height. Exaggerate expressions a little compared with normal conversation so the model can tell them apart. Fearful and surprised, and angry and disgusted, look similar and are easily mixed up.

Showing it in a class or talk

Switch to "Overlay" and the results panel sits over the top right of the video, so a single projected screen shows both the face and the chart. On narrow phone screens the panel still appears below the video, even in overlay mode.

Glasses and masks

A mask hides the mouth, making it hard to separate happy from neutral. Glasses usually don't hurt detection, but reflections on the lenses can make expressions around the eyes count for less.

On a phone

On phones the tool asks for the front (selfie) camera. Holding the phone in your hand keeps changing your face's size and angle, which makes results jumpy, so prop it up instead.

FAQ

Does it show how I really feel?

No. It looks at the shape of your face and estimates which expression it resembles. It can't know what you're feeling. A relaxed face reading as "sad" or a smile reading as "neutral" is common.

What happens with more than one person on camera?

Every face gets a box, but the chart only shows the values for the first face detected. For a clean reading, keep one person in the frame.

It struggles to find my face.

Low light or turning to the side makes detection harder. Face the camera and move a bit closer if your face looks small in the frame. Masks or hands covering your face also get in the way.

Is the video recorded or uploaded?

No. The video is only used inside your browser to calculate the expression scores. Nothing is saved or sent to a server.

Can I point it at someone without telling them?

Please don't. Always get a person's consent before analyzing their face. This is a demo for fun and learning, and it isn't accurate enough to judge or assess anyone.

How is the result card made?

When you press "Save a card of this expression", the card is built from the camera frame at that moment and the emotion scores at that time. It includes a circular crop of your face and is created inside your browser. Nothing is sent anywhere until you save or share it yourself.

Troubleshooting

It's stuck on "Loading AI model...".

The detection and expression model files are being downloaded from a public CDN (cdn.jsdelivr.net). Slow connections take a while, and if that address is blocked on your work or school network it will never finish. Reload the page or try a different network.

The camera is on but the picture is black.

Usually another app, such as a video-call app, is using the camera, or the laptop's privacy shutter or camera hotkey has it switched off. Close the other app, click "Turn off camera" and then "Turn on camera" again.

It keeps saying "No face found".

If your face is too small (too far from the camera), turned to the side, or dark because of a bright window behind you, the detection score stays below the threshold. Move a little closer, face the camera, and avoid sitting with a window behind you.

The results keep changing even though I'm still.

That's expected, since every frame is calculated afresh. A neutral face in particular often flips between Neutral and Sad. Take whichever item is bold most often over a few seconds as the result.

My laptop heats up and the fan gets loud.

While the camera is on, analysis runs continuously. Click "Turn off camera" or close the tab when you're done. Switching to another tab pauses the analysis, but the camera itself stays on.

Limitations

  • With several people on camera, the chart shows only one of them.
  • It analyzes every frame continuously, which can drain a laptop battery and warm it up. Turn the camera off when you're not using it.
  • The models must be downloaded on first use, so you need an internet connection.
  • This is a beta feature, and updates may lag on slower devices or browsers.

More in AI & Fun Tests