Skip to main content

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

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Place your photos in the uploads directory

  2. Run the application:

python app.py

Project Structure

  • app.py: Main Flask application and web interface
  • emotion_analyzer.py: Face detection and emotion analysis module
  • music_generator.py: Music generation based on emotional patterns
  • static/: Web assets (CSS, JavaScript, images)
  • templates/: HTML templates for the web interface
  • uploads/: Directory for input photos
  • output/: Directory for generated content

Usage

  1. Place your photos in the uploads directory
  2. Run the application
  3. Access the web interface at http://localhost:5000
  4. Upload reference photos of the person to track
  5. Upload photos to analyze
  6. 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)

Source distribution for face-mood-analyzer 1.0.2
File Size Uploaded
face_mood_analyzer-1.0.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for face-mood-analyzer 1.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page