Git Product home page Git Product logo

narendrensaravanan / emotion-recognition-using-python Goto Github PK

View Code? Open in Web Editor NEW
46.0 1.0 18.0 71.93 MB

The python code detects different landmarks on the face and predicts the emotions such as smile based on it. It automatically takes a photo of that person when he smiles. Also when the two eyebrows are lifted up, the system plays a music automatically and the music stops when you blink your right eye.

License: MIT License

Python 100.00%
python opencv-python opencv facial-landmarks facial-expression-recognition smile-detection human-computer-interaction emotion-recognition

emotion-recognition-using-python's Introduction

Emotion recognition using Python

Acknowledgement:

This code uses the facial landmarks code available at Adrian's website - link https://www.pyimagesearch.com/2017/04/17/real-time-facial-landmark-detection-opencv-python-dlib/.

How the code works??

The python code detects different landmarks on the face and predicts the emotions such as smile based on it. It automatically takes a photo of that person when he smiles. Also when the two eyebrows are lifted up, the system plays a music automatically and the music stops when you blink your right eye.

How to install the project and various other modules??

The project was done long back so it would be working properly only if you install particular versions of each module. #Python Version used for project - 2.7.13 (32 bit version)

  1. CMAKE - 0.6.0 (install using pip)
  2. DLIB - 18.17.100(install using pip)
  3. NUMPY - https://sourceforge.net/projects/numpy/files/NumPy/1.10.0/numpy-1.10.0-win32-superpack-python2.7.exe/download (Download the file and install using pip)
  4. OPENCV - https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv (Download the first file - opencv_python‑2.4.13.5‑cp27‑cp27m‑win32.whl and install using pip)
  5. PYGAME - 1.9.3 (install using pip)

Detecting Different facial expressions:

To detect smile in a face, points 49 and 50 are considered. The distance between those points increases when a person smiles and that is used here to detect a smile.

To detect left eye brow movement(lifting up), points 38 and 41 are considered. The distance between those points increases when a person smiles and that is used here to detect a smile.

Similarly to detect right eye brow movement(lifting up), points 44 and 47 are considered. The distance between those points increases when a person smiles and that is used here to detect a smile.

emotion-recognition-using-python's People

Contributors

naren123456 avatar narendrensaravanan 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

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.