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.
- Captures frames from your webcam.
- Detects facial landmarks using MediaPipe Face Mesh.
- Analyzes mouth and eye positions to estimate the mood.
- Loads emoji images based on emotion.
- Overlays the matching emoji on the detected face.
- Displays the live video with the emoji in real time.
- Python 3.10
- OpenCV (
cv2) - NumPy
- MediaPipe
Install dependencies using pip:
pip install opencv-python numpy mediapipeRun the script:
python main.pyPress q to exit the program.
- Adjust the values in the function
init_camera()to change the resolution.
- Works best in good lighting conditions!