Skip to content

MoodMirror is a python app that detects your mood in real time using your webcam. It replaces then your face with an emoji that matches your current emotion.

License

Notifications You must be signed in to change notification settings

FeldherrWeiprecht/MoodMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cce2f30 · · Jul 16, 2025

History

4 Commits
Jul 12, 2025
Jul 12, 2025
Jul 16, 2025
Jul 16, 2025
Jul 12, 2025
Jul 12, 2025
Jul 12, 2025
Jul 12, 2025
Jul 12, 2025
Jul 12, 2025

Repository files navigation

MoodMirror Logo

MoodMirror

Description

MoodMirror is a python application that uses your webcam and MediaPipe's face mesh to detect facial expressions and display an appropriate emoji over your face in real time.

How It Works

  1. Captures frames from your webcam.
  2. Detects facial landmarks using MediaPipe Face Mesh.
  3. Analyzes mouth and eye positions to estimate the mood.
  4. Loads emoji images based on emotion.
  5. Overlays the matching emoji on the detected face.
  6. Displays the live video with the emoji in real time.

Requirements

  • Python 3.10
  • OpenCV (cv2)
  • NumPy
  • MediaPipe

Install dependencies using pip:

pip install opencv-python numpy mediapipe

Usage

Run the script:

python main.py

Press q to exit the program.

Configuration

  • Adjust the values in the function init_camera() to change the resolution.

Notes

  • Works best in good lighting conditions!

Example

example

About

MoodMirror is a python app that detects your mood in real time using your webcam. It replaces then your face with an emoji that matches your current emotion.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages