Giter Site home page Giter Site logo

xrosliang / face-and-emotion-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vjgpt/face-and-emotion-recognition

0.0 1.0 0.0 28.35 MB

Realtime person's face recognize and can classify emotion using webcam, video or images.

License: MIT License

Python 100.00%

face-and-emotion-recognition's Introduction

Face and Emotion Recognition

This software recognizes person's faces and their corresponding emotions from a video or webcam feed. Powered by OpenCV, Dlib, face_recognition and Deep Learning.

Demo

Image

Dependencies

Note : If you are facing issues installing dlib in your system then use google collab its comes as pre-installed.

Usage

  • test folder contain images or video that we will feed to the model.
  • images folder contain only images of person face to perform face recognition.
  • models contain the pre-trained model for emotion classifier.
  • emotion.py can to run to classify emotions of person's face.
  • face-rec-emotion.py can recognise faces and classify emotion at a time.
  • face_recognition library uses the FaceNet Implementation for face recognition.For more details please visit here

python emotion.py

python face-rec-emotion.py

To train new models for emotion classification

  • Download the fer2013.tar.gz file from here
  • Move the downloaded file to the datasets directory inside this repository.
  • Untar the file: tar -xzf fer2013.tar
  • Download train_emotion_classifier.py from orriaga's repo here
  • Run the train_emotion_classification.py file: python train_emotion_classifier.py

Deep Learning Model

The model used is from this research paper written by Octavio Arriaga, Paul G. Plöger, and Matias Valdenegro.

Model

Credit

  • Computer vision powered by OpenCV.
  • Neural network scaffolding powered by Keras with Tensorflow.
  • FaceNet Research Paper
  • Convolutional Neural Network (CNN) deep learning architecture is from this research paper.
  • Pretrained Keras model and much of the OpenCV code provided by GitHub user oarriaga.

face-and-emotion-recognition's People

Contributors

vgupta-phdata avatar vjgpt 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.