Face Mood Analyzer
A stable, production-ready AI application that analyzes emotions in photos and generates corresponding musical journeys. Built with well-tested, stable versions of industry-standard libraries.
Features
- Advanced face detection and recognition using RetinaFace
- Emotion analysis across multiple photos (7 basic emotions)
- Face quality assessment and filtering
- Emotion-based music generation
- Interactive web interface
- Video generation with emotional music
- Support for multiple input photos
- Real-time processing and analysis
Technical Stack
- TensorFlow 2.12.0
- PyTorch 2.0.1
- OpenCV 4.8.0
- DeepFace 0.0.75
- Flask 2.3.3
Setup
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
-
Place your photos in the
uploadsdirectory -
Run the application:
python app.py
Project Structure
app.py: Main Flask application and web interfaceemotion_analyzer.py: Face detection and emotion analysis modulemusic_generator.py: Music generation based on emotional patternsstatic/: Web assets (CSS, JavaScript, images)templates/: HTML templates for the web interfaceuploads/: Directory for input photosoutput/: Directory for generated content
Usage
- Place your photos in the
uploadsdirectory - Run the application
- Access the web interface at
http://localhost:5000 - Upload reference photos of the person to track
- Upload photos to analyze
- The system will process your photos and generate a musical journey
Requirements
- Python 3.8+
- CUDA-capable GPU (recommended for faster processing)
- Modern web browser
- 4GB+ RAM
- 10GB+ disk space
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with Flask
- Uses deep learning for emotion detection
- Music generation powered by machine learning algorithms
Metadata
Release files for face-mood-analyzer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| face_mood_analyzer-1.0.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| face_mood_analyzer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / face_mood_analyzer-1.0.2.tar.gz
| Download URL | face_mood_analyzer-1.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b844d2ac6b47e247373bfc0ff0deb4d8338aad885c5fe604ee2ec296eb7d327e
|
|
BLAKE2b-256 checksum How to use checksums |
38916f7ad9a348981b04cc3c848349ab7a7b7e5efb5673bfa753aa1e23f4ddc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.17
|
Release files / face_mood_analyzer-1.0.2-py3-none-any.whl
| Download URL | face_mood_analyzer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ed343d5297cbcc5372c6a9710203f8a8f334ed0680d484fc6d1d86a1446424c
|
|
BLAKE2b-256 checksum How to use checksums |
b890acba7c56b59e7f7061f84ffeff791432633c12813426b3ce37a767ae26ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.17
|