Coder Social home page Coder Social logo

manid2 / python_opencv_emotion_detection Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 14.16 MB

Train and predict human emotions using OpenCV in python. Uses SVM and HOG as ML object detection method.

Python 100.00%
emotion-detection support-vector-machines dataset face experiments machine-learning-algorithms

python_opencv_emotion_detection's Introduction

Python_OpenCV_Emotion_Detection

To capture a moment based on the detected emotion on a human face.
Developing using a set of tutorials from the following link:
Pual Van Gent.

TODO

  1. Keep track of each face in the video/image and display their emotional state.
  2. Monitor the facial state information when no face is detected.
  3. Remove contempt.
  4. Add pout and disgust faces.

Current trainData representation

Training Data
-------------
454 images with 68 * 2 features i.e 68 mag and 68 ang per image.
npArrTrainData.shape = (454L, 136L).

labels corresponding to the input images.
npArrTrainLabels.shape = (454L,).

Testing Data
------------
111 images with 68 * 2 features i.e 68 mag and 68 ang per image.
npArrTestData.shape = (111L, 136L).
npArrTestLabels.shape = (111L,).

Prediction accuracy = 69.3694 % for 6 emotional states.

Update 2020-07-04_01:44:32

I am quite surprised that this project has become very popular in my profile.
Since it is my original work it deserves to be popular. I am glad people found
this very useful.

For this reason I am updating this repo with useful links to related projects.

Note

Due to lack of expertise in git I had committed image and video data
used in the project. Removed them in the master branch tip but retained in the
git history. Please checkout older commits to access them if desired.

Currently not working in any Python, ML or Image processing projects.
My primary skills are in C++ and Linux development.
Hence not contributing to this repo until I can make time for fun projects. :sweat_smile:

python_opencv_emotion_detection's People

Contributors

manid2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

spratik ebuty

python_opencv_emotion_detection's Issues

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.