SaiKiranReddyK28 / Emotion-based-music-recommendation-system

The Emotion-Based Music Recommendation System provides real-time, personalized song suggestions by analyzing users' emotions, creating a unique and emotionally resonant music experience across various platforms with data privacy.
0 stars 0 forks source link

Emotion-based music recommendation system

This web-based app written in Python will first scan your current emotion with the help of OpenCV & then crop the image of your face from the entire frame once the cropped image is ready it will give this image to a trained MACHINE LEARNING model to predict the emotion of the cropped image. This will happen 30-40 times in 2-3 seconds, now once we have a list of emotions (containing duplicate elements) with us it will first sort the list based on frequency & remove the duplicates. After performing all the above steps we will have a list containing the user's emotions in sorted order, Now we have to iterate over the list & recommend songs based on emotions in the list.

Installation & Run

Create a new project in Pycharm and add the above files. After that open the terminal and run the following command. This will install all the modules needed to run this app.

  pip install -r requirements.txt

To run the app, type the following command in the terminal.

  streamlit run app.py

Libraries

Demo video

[Emotion-based music recommendation system](

https://github.com/Hiralsathwara/Emotion-based-music-recommendation-system/assets/127468119/5b2626f6-68fe-499c-9c3e-56b37f7c5d26

)

Authors

Support

For support,hiral sathwara (https://www.linkedin.com/in/hiral-sathwara-873561269/)