All Projects → DeepInEvil → webCamEmocognizer

DeepInEvil / webCamEmocognizer

Licence: other
A cool emotion detector using your laptop/desktop webcam

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to webCamEmocognizer

facial-expression-recognition
Facial Expression Recognition Using CNN and Haar-Cascade
Stars: ✭ 44 (-22.81%)
Mutual labels:  facial-expression-recognition
Amend-Representation-Module
ARM - Official PyTorch Implementation
Stars: ✭ 53 (-7.02%)
Mutual labels:  facial-expression-recognition
Facial-Expression-Recognition
A Pytorch Implementation of FER( facial expression recognition )
Stars: ✭ 27 (-52.63%)
Mutual labels:  facial-expression-recognition
ferattention
FERAtt: Facial Expression Recognition with Attention Net
Stars: ✭ 69 (+21.05%)
Mutual labels:  facial-expression-recognition
Facial-Expression-Recognition
Facial-Expression-Recognition using tensorflow
Stars: ✭ 19 (-66.67%)
Mutual labels:  facial-expression-recognition
Hemuer
An AI Tool to record expressions of users as they watch a video and then visualize the funniest parts of it!
Stars: ✭ 22 (-61.4%)
Mutual labels:  facial-expression-recognition
FMPN-FER
Official PyTorch Implementation of 'Facial Motion Prior Networks for Facial Expression Recognition', VCIP 2019, Oral
Stars: ✭ 76 (+33.33%)
Mutual labels:  facial-expression-recognition
AIML-Human-Attributes-Detection-with-Facial-Feature-Extraction
This is a Human Attributes Detection program with facial features extraction. It detects facial coordinates using FaceNet model and uses MXNet facial attribute extraction model for extracting 40 types of facial attributes. This solution also detects Emotion, Age and Gender along with facial attributes.
Stars: ✭ 48 (-15.79%)
Mutual labels:  facial-expression-recognition
Emotion-Investigator
An Exciting Deep Learning-based Flask web app that predicts the Facial Expressions of users and also does Graphical Visualization of the Expressions.
Stars: ✭ 44 (-22.81%)
Mutual labels:  facial-expression-recognition
fer
Facial Expression Recognition
Stars: ✭ 32 (-43.86%)
Mutual labels:  facial-expression-recognition
facial-expression-recognition
The main purpose of the project - recognition of emotions based on facial expressions. Cohn-Kanade data set (http://www.pitt.edu/~emotion/ck-spread.htm) is used for explorations and training
Stars: ✭ 60 (+5.26%)
Mutual labels:  facial-expression-recognition
MA-Net
“Learning Deep Global Multi-scale and Local Attention Features for Facial Expression Recognition in the Wild”, IEEE T-IP, 2021.
Stars: ✭ 53 (-7.02%)
Mutual labels:  facial-expression-recognition
Action-Units-Heatmaps
Code for BMVC paper "Joint Action Unit localisation and intensity estimation through heatmap regression"
Stars: ✭ 80 (+40.35%)
Mutual labels:  facial-expression-recognition

webCamEmocognizer

A cool emotion detector using your laptop/desktop webcam.

Data resource

The data for this work is taken from the kaggle competiotion: Challenges in Representation Learning: Facial Expression Recognition Challenge https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge

The dataset provided in the competion consists of gray scale images which are 48 x 48 in dimension and the corresponding labels consisting of 7 emotions.

We are using a simple convolution neural network to classify the images.

Then, we are using opencv to extract 48 x 48 dimension images using the webcam and classifying them using our model.

Requirements

The code is written in python 2.7.9
Keras (1.2.1)
numpy
pandas
theano (0.8.2)
cv2 (1.0)

Data

The data consists of scaled images from the kaggle competion kept in the data folder and also the labels in .npy format.

Training and running the tool

To train using the data, use the script trainCNN.py
Firstly, create the image data scaled, run the script
python ./genScaledDat.py
check if the file Scaled.bin.npy is generated in the data folder.
Then run the following:
python ./trainCNN.py

to run the detection using the training models run:
python ./DetectEmotion.py

Sample

Let's see if it likes beer:

Todos

A lot

  1. Clean up the code
  2. Update Keras backend and use OpenCv 3.0
  3. If anyone wants to contribute, plase feel free to contact.

N.B.

This project was part of my Master's thesis, the thesis is also added in the documents folder.

References:

[1] Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton. ImageNet Classification with Deep Convolutional Neural Networks.
[2] Shima Alizadeh, Azar Fazel. Convolutional Neural Networks for Facial Expression Recognition.
[3] https://codeplasma.com/2012/12/03/getting-webcam-images-with-python-and-opencv-2-for-real-this-time/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].