Giter Club home page Giter Club logo

music_player_with_emotions_recognition's Introduction

Music🎵 player with Emotion😂😥😡😱 Recognition

Sourcerer

Code Requirements

  • Tensorflow
  • Download my repository
  • Own Expression dataset(NOTE: You can downlaod expression images from google, or you can record your video make diffrent expression ,and converts into Grayscale images(For more accurate prediction))
  • Song dataset

What steps you have to follow??

  • Download my repository
  • Make 'Images' folder in your project ,make subfolder for emotions like Happy,sad,Angry.
  • Put Face_crop.py & haarcascade_frontalface_alt.xml in every type of image folder,ex : put this program in "happy' image folder and run this program it will detect faces from images and convert it into grayscale and make a new images in same folder.
  • Make 'Songs' folder make subfolders for emotions and put Songs,Like Happy songs in happy folder.
  • After that you have to create model, for that copy code from code.txt file and open CMD in your project folder and paste it & enter
  • It will take training aaround 20-25 minutes so keep patience.
  • After training it will create two files retrained_graph.pb & retrained_labels.txt
  • Now run music_player_webcam.py (give proper path of songs and Mediaplayer according to your location in code)
  • If you want to fetch video from your mobile cam than use music_player_android.py,but you have to install IPWebcam app in your system and replace your server URL with my URL
  • That's all

How it works? See:) FREE VERSION WITHOUT GUI

Video demo :- FREE VERSION

Youtube

IMPORTANT if you want to purchase with GUI

  • This is just coded version with no GUI, i ggiven it to opensource ,but if you want to purchase a GUI version ,then go to here STORE

Features of full GUI version

  • Full GUI (Tkinter)
  • Own developed Music player with all basic functionalities
  • See here are some screenshots of full GUI version.

Screenshots

This guy purchased this project from me and won prize in Zhejiang university of technology China

Poster Presentation

Notes

  • It will require high processing power(I have 8 GB RAM & 2 GB GC)
  • If you think it will recognise expression just like humans,than leave it ,its not possible.
  • Download 300 Images for every expression(you can use batch downloader)
  • Noisy image can reduce your accuracy so quality of images matter.

Just follow☝️ me and Star⭐ my repository

Buy this projects from here at very low price:- STORE

music_player_with_emotions_recognition's People

Contributors

spidy20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

music_player_with_emotions_recognition's Issues

Code.txt file not found

Hello,
Where is the code.txt file in your repo? I didn't get this file in your repo.
Or is this file available with some other name?

I opened cmd in that project folder and copied the code "python retrain.py --output_graph=retrained_graph.pb --output_labels=retrained_labels.txt --architecture=MobileNet_1.0_224 --image_dir=images"

this is error that is thrown.

D:\One Driive\OneDrive\Desktop\Music_player_with_Emotions_recognition-master\Music_player_with_Emotions_recognition-master>python retrain.py --output_graph=retrained_graph.pb --output_labels=retrained_labels.txt --architecture=MobileNet_1.0_224 --image_dir=images
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

D:\One Driive\OneDrive\Desktop\Music_player_with_Emotions_recognition-master\Music_player_with_Emotions_recognition-master>

Detects the emotion but not playing song

Hello,
All code working fine, also detects the emotion fine. It also said "I playing a song for you" but it didn't open and play song.
PS: I have changed the path of songs and media player in the file "music_player_webcam.py".
Here is the commands below:

(tensorflow) D:\Auto Home\New Project>python music_player_webcam.py
You are sad,dont worry:) ,I playing song for you: Roke%20Na%20Ruke%20Naina%20(SongsMp3.Com).mp3
Please stay focus in Camera frame atleast 15 seconds & run again this program:)
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback

error showing

AttributeError: module 'tensorflow' has no attribute 'app'

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.