Giter VIP home page Giter VIP logo

infiniteoverflow / facial-expression-recognition-classifier-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanjaymarreddi/emotion-investigator

1.0 1.0 0.0 145.39 MB

An Exciting Deep Learning based Flask web app that predicts the Facial Expressions of users and also does Graphical Visualization of the Expressions !

License: MIT License

Jupyter Notebook 92.53% Python 4.40% HTML 2.91% CSS 0.16%

facial-expression-recognition-classifier-model's Introduction

Facial Emotion Investigator !

All Contributors

forthebadge made-with-python GitHub contributors GitHub forks GitHub Repo stars GitHub Repo Issues GitHub license PRs Welcome

๐Ÿ˜Ž About The Project: ๐Ÿ‘‡

Facial Expression Recognition Classifier Model :

Facial expression for emotion detection has always been an easy task for humans, but achieving the same task with a computer algorithm is quite challenging. With the recent advancement in computer vision and machine learning, it is possible to detect emotions from images.In this project,we propose a novel technique called facial emotion recognition using convolutional neural networks,python and flask. Facial expressions are the vital identifiers for human feelings, because it corresponds to the emotions. Most of the times (roughly in 55% cases), the facial expression is a nonverbal way of emotional expression, and it can be considered as concrete evidence to uncover whether an individual is speaking the truth or not.

โ›ณ Our Facial Expression Recognition Classifier Model can take input via following ways : ๐Ÿ‘‡

  • Real-time Video input
    nuetral
  • Upload Images from the System
    sad
  • Provide URL of the Image
    angry
    happy
  • It predicts the Emotion of users and also gives Graphical Visualization of Emotions as shown above.

โžฟ Tech Stack used ๐Ÿ‘‡

  • Python
  • Flask
  • HTML, CSS
  • Deep Learning (CNN)

๐Ÿ’ฅ Getting Started: Steps to run the Project in your local device !!

  • Fork this repository.
  • Clone the repository to your System using git clone
  • Example : git clone https://github.com<your-github-username>/Facial-Expression-Recognition-Classifier-Model
  • Open any Python IDE and run the main.py file.
  • Once it shows Running on http://127.0.0.1:5000/ go to http://127.0.0.1:5000/ in your browser.

๐Ÿ’ป Coding Structure:

  • Import the required Packages and Libraries.
  • Data analysis and Creating Training and Validation Batches.
  • Create a CNN using 4 Convolutional Layers including Batch Normalization, Activation, Max Pooling, Dropout Layers followed by Flatten Layer, 2 Fully Connected dense Layers and finally Dense Layer with SoftMax Activation Function.
  • Compile the model using Adam Optimizer and categorical cross entropy loss function.
  • Training the model for 15 epochs and then Evaluating the model as well as saving the model Weights in .h5 Values
  • Saving the model as JSON string.
  • Creating a Class in a separate file to reload the model and its weights to make predictions and return the probabilities of each emotion.
  • Creating one more class in a Separate file which takes in the Real-time Video input and returns frames of Images with a Circle detecting the face and putting text of its emotion on it.
  • A python script is also created which upon running yields the Graphical Visualization of Emotions present in the Image provided.
  • Finally creating a file which inherits form all the Classes defined by us and deploys our application using Flask.

Steps to Contribute to this Project ! ๐Ÿ‘‡

Go through the link If you are new to Open Source Contribution here on making your First Contribution !!

  • Fork this repository
  • Clone the repository to your System using git clone https://github.com<your-github-username>/Facial-Expression-Recognition-Classifier-Model
  • Create a branch :-
    • Change to the repository directory on your computer cd Facial-Expression-Recognition-Classifier-Model
    • Now create a branch using the git checkout command: git checkout -b your-new-branch-name
  • Make changes as per your requirement to solve the Issues mentioned in the Future scope of the Project and commit those changes.
  • If you go to the project directory and execute the command git status, you'll see there are changes. Add those changes to the branch you just created using the git add
  • Now commit those changes using the git commit command: git commit -m "Added the feature of Suggesting Music"
  • Push your changes to GitHub using the command git push origin <add-your-branch-name>
  • If you go to your repository on GitHub, you'll see a Compare & pull request button. Click on that button.
  • Now describe the changes you made and submit the pull request.
  • Wait for the Maintainers to review :)

Any sort of Contributions are always welcomed ๐ŸŽ‰

Excited to contribute to the Project ? Head over Open Issues here

Project Admin ๐Ÿ‘‡

SanjayMarreddi

Contributors ๐Ÿ”ฅ

Thanks to all these wonderful developers who made this project awesome!:raised_hands:


Sanjay Marreddi

๐Ÿ’ป ๐Ÿ“† ๐Ÿ’ฌ ๐Ÿ‘€ ๐Ÿ“ข

Muthu Annamalai.V

๐Ÿ’ป

atharunc

๐Ÿ’ป

bharath-acchu

๐Ÿ’ป

Anusha verma chandraju

๐Ÿ’ป

Himanshu

๐Ÿ’ป

Open Source Programs

This Project is part of the following programs :

DevScript Winter of Code

Code of Conduct

You can find our Code of Conduct here.

License

This project follows the MIT License.

facial-expression-recognition-classifier-model's People

Contributors

allcontributors[bot] avatar anushavc avatar bharath-acchu avatar dependabot[bot] avatar himanshu007-creator avatar infiniteoverflow avatar muthuannamalai12 avatar sanjaymarreddi avatar tharunc avatar

Stargazers

 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.