Skip to content

EmoTunes is an emotion-based music recommendation system that uses real-time webcam detection to identify user emotions. It plays corresponding YouTube songs from categorized CSV files (e.g., Happy, Sad) and allows users to manually select their emotions for a tailored experience.

Notifications You must be signed in to change notification settings

aashnajoshi/EmoTunes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmoTunes

EmoTunes is an emotion-based music recommendation system. It detects a user's emotion in real-time using a webcam, processes the image through a trained neural network model, and plays a YouTube song corresponding to the detected emotion. The songs are selected from CSV files based on different emotional categories (e.g., Happy, Sad). Users can also manually choose their emotions for a more customized experience.

Features

  • Real-time emotion detection via webcam
  • Neural network model integration
  • YouTube song playback according to detected emotions

Usage

All required libraries can be installed using a single-line command:

pip install -r requirements.txt

While to run the code:

Console-based version:

python main.py

Streamlit-based version:

streamlit run app.py

Description about various files:

  • app.py: Contains a streamlit-based version of the main code.
  • main.py: Core program logic for emotion detection and song playback.
  • model.h5: Trained neural network model for facial emotion recognition.
  • Song_Names: Folder containing CSV files with songs representing specific emotions.
  • requirements.txt: File containing all required Python modules.

About

EmoTunes is an emotion-based music recommendation system that uses real-time webcam detection to identify user emotions. It plays corresponding YouTube songs from categorized CSV files (e.g., Happy, Sad) and allows users to manually select their emotions for a tailored experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages