Giter Club home page Giter Club logo

face-expression-and-ethnic-recognition's Introduction

Face expression and ethnic recognition

This project creates two image models: for face expression recognition and for ethnic classification. The dataset used for training is the Montreal Set of facial displays of emotion (MSFDE). The images are taken from 32 participants (African, Asian, Caucasian and Hispanic). Each person shows different expressions (neutral, anger, joy, sadness, fear, disgust and shame) with different intensity of the emotion obtaining a total of 580 training images.

Face expression recognition

For this purpose, the face is isolated of the image and reshape to a fixed size. Then, the position of the points of interest of the face (nose, eyes, eyebrows and mouth) have been extracted obtaining a 102 dimensionality vector. SVM is applied in order to create boundaries between the seven classes. 72% accuracy is achieved in the validation set (20%).

Ethnic recognition

A deep learning approach has been used to tackle this problem. The vgg face architecture explained in this paper has been used implemented in a Keras library. This deep network has been pretrained in 200 million images and eight million unique identities, then, removing the last two fully connected layers, retrained for this problem using stochastic gradient descent with Nesterov momentum. It obtains 95% accuracy in the validation set (30%).

Both approachs may be feasible to test in realtime as they can process around 5 frames per second.

How to run the code:

For making the dataset

$ python read_images.py

$ python read_emotions.py

For expression recognition

$ python train_emotion.py

$ python test_emotions.py -i

For ethnic recognition

$ python train_ethnic.py

$ python test_ethnic.py -i

face-expression-and-ethnic-recognition's People

Contributors

hectoranadon avatar

Watchers

 avatar  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.