S ScienceFairProjects.info
Medium⏱ time2 hr$ cost0

Emotion Detector

Use a model to guess facial expressions like happy, sad or surprised from a webcam.

Start building ↓
fig — working model Result first

The build

Step 01

Load the model

Bring in a face-expression model.

Step 02

Detect a face

Find the face in the frame.

Step 03

Read expression

Get the predicted emotion scores.

Step 04

Display

Show the top emotion live.

Working Principle

The model maps facial features to expression categories and reports which emotion best fits the current face.

The science behind it

A closer look

It's classification of facial features; accuracy varies by lighting and person, and it can carry bias — use only your own face.

Take it further

Variables to test

  • 1 Test exaggerated vs subtle faces.
  • 2 Where does it confuse two emotions?

More AI