A smart mirror feature that detects faces, analyzes expressions, and provides personalized compliments.
- Real-time face detection
- Emotion analysis
- Personalized compliments with text-to-speech
- Privacy-focused (all processing done locally)
-
Setup Python 3.10 virtual environment
-
Install requirements:
pip install fer
pip install tensorflow-cpu
pip install opencv-contrib-python>=3.2
pip install moviepy==1.0
pip install numpy==1.24
pip install pyttsx3- Run the application:
python main.py- The program will open your camera
- Stand in front of the camera
- Your emotion will be detected and displayed
- Compliments will be shown and spoken based on your emotion
- Press 'q' to quit
- main.py: Main program file
- config.json: Configuration settings
- compliments.json: Emotion-based compliments
- README.md: This documentation
Make sure you have a working camera and speakers/headphones for the full experience.