Giter Site home page Giter Site logo

hadryan / moodzik Goto Github PK

View Code? Open in Web Editor NEW

This project forked from belhoussine/moodzik

0.0 1.0 0.0 364.89 MB

MoodZik is a web app that utilizes Machine Learning to analyze its user's face through their webcam, identify their current emotions, and compose music based on how they are feeling.

License: MIT License

Python 76.43% CSS 5.34% HTML 17.14% Shell 1.08%

moodzik's Introduction

Moodzik

Overview:

MoodZik is a web app that utilizes Machine Learning to analyze a user's face through the webcam, identify their current emotions, and generate music from scratch based on how they are feeling.
The technologies / libraries used in this project are:

  • Tensorflow & Keras
  • Convolutional Neural Networks (Face / Emotion detection)
  • Recurrent Neural Networks (Music generation)
  • Pandas
  • OpenCV
  • NumPy
  • Flask

Clone & Install dependencies:

Moodzik builds fine on Ubuntu 20.04.1 using Python 3.8.5

    git clone https://github.com/Belhoussine/Moodzik.git  
    ./Moodzik/setup

Run Moodzik locally:

    cd ./Moodzik/WebApp/
    python3 app.py
    firefox http://127.0.0.1:5000/

Face & Emotion Detection:

Demo

MindMap:

MindMap

1. Face detection CNN:

  • Get input from camera
  • Use Haar_Cascade model
  • Capture face:
    • Capture frame
    • Crop frame to identify face only
  • Process captured face
  • Feed to CNN_02

2. Mood detection CNN:

  • Get face image from CNN_01

  • Build CNN_02:

    • Design network architecture:
      • Convolution layers.
      • Fully connected Neural Network.
      • Define activation functions.
      • Define output labels.
      • Define optimizer / loss function.
  • Train CNN_02:

    • Dataset:
      • Pre-processing:
        • Normalize data
      • Image processing:
        • Convert to grayscale
    • Train model
    • Save model as JSON
  • Predict mood from image

  • Display mood

3. Music Generation RNN:

  • Get mood from CNN_02
  • Train Music generator Neural Network:
    • Use Magenta
    • Use primers to generate music from
  • Generate music based on mood:
    • Provide mood primers
    • Generate MIDI file based on mood

4. Play Music:

  • Use Pygame.mixer on generated midi file

5. Publish web-app:

  • Desing GUI
  • Use flask to serve app
  • Host in a remote server
  • Purchase domain name
  • Deploy

moodzik's People

Contributors

belhoussine avatar hamzaait avatar

Watchers

 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.