Giter Club home page Giter Club logo

moodsynctunes's Introduction

MoodSyncTunes

MoodSyncTunes is a project that uses facial emotion recognition to detect the user's mood through their webcam and recommends songs based on the predicted emotion. The application is built using Flask for the backend and HTML/CSS, JavaScript for the frontend. It leverages a pre-trained Convolutional Neural Network (CNN) model for facial emotion recognition.

Features

  • Facial Emotion Recognition: The application uses a pre-trained CNN model to analyze facial expressions and predict the user's emotion in real-time.

  • Webcam Integration: Users can open their webcam, and the application captures snapshots to analyze facial expressions.

  • Song Recommendations: Based on the predicted emotion, the application recommends songs that match the user's mood.

Prerequisites

Before running the application, make sure you have the following installed:

  • Python (3.x recommended)
  • Flask
  • OpenCV
  • TensorFlow
  • PIL (Python Imaging Library)
  • NumPy

Install the required Python packages using:

pip install flask opencv-python tensorflow pillow numpy

Getting Started

  1. Clone the repository:
git clone https://github.com/your-username/MoodSyncTunes.git
cd MoodSyncTunes

2 .Run the Flask application:

python main.py
  1. Open a web browser and go to http://localhost:5000.

  2. Click on the "Open Webcam" button to activate your webcam.

  3. Capture snapshots to analyze facial expressions and receive song recommendations.

Folder Structure

static/: Contains static files such as images and CSS.

emojis/: Emoji images corresponding to different emotions.

templates/: HTML templates for the frontend.

index.html: Main page template.

main.py: Flask application script.

CNN_Final_Modelv2.h5: Pre-trained CNN model for facial emotion recognition.

haarcascade_frontalface_default.xml: Haar Cascade for face detection.

FER.py: Flask application script for real time facial emotion recognition

FERmodel.ipynb: kaggle notebook for training the model

moodsynctunes's People

Contributors

dsnohwar avatar sameer-shreyas avatar mrmarwaha avatar savio81 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.