AI-powered emotion analyzer that detects faces in photos and generates corresponding music
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file face_mood_analyzer-1.0.2.tar.gz.
File metadata
- Download URL: face_mood_analyzer-1.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b844d2ac6b47e247373bfc0ff0deb4d8338aad885c5fe604ee2ec296eb7d327e
|
|
| MD5 |
3d64cdec798f7ce50c087762d08bab5e
|
|
| BLAKE2b-256 |
38916f7ad9a348981b04cc3c848349ab7a7b7e5efb5673bfa753aa1e23f4ddc1
|
File details
Details for the file face_mood_analyzer-1.0.2-py3-none-any.whl.
File metadata
- Download URL: face_mood_analyzer-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ed343d5297cbcc5372c6a9710203f8a8f334ed0680d484fc6d1d86a1446424c
|
|
| MD5 |
c29876afbddc2ae072756cc4708ab632
|
|
| BLAKE2b-256 |
b890acba7c56b59e7f7061f84ffeff791432633c12813426b3ce37a767ae26ca
|