Giter Club home page Giter Club logo

facial-expression-prediction's Introduction

Facial Expression Prediction

This project aims to predict different facial expressions given a neutral model, to populate a Neural Network dataset.

For this purpose we made some statistics analysis of a set of facial expressions. After these studies, we achieved to build an efficient facial expression predictor that can translate a neutral model to an expressive face.

The expressions studied are:

  • angry;
  • contempt;
  • disgust;
  • fear;
  • happy;
  • sadness;
  • surprise.

The project is developed by Alessandro Sestini and Francesco Lombardi

Implementation

In order to strengthen the results, different techniques have been used:

  • Mean, median, mode
  • Linear regression
  • Support Vector Regression (SVR)
  • Neural Network

After a study of data distributions through Mean Shift algorithm, we can conclude that the best method to create a good quality facial expression is the statistics method.

A result example is shown in the figure below; the script let the user to emphasize the expression changing an alpha value.:

Installation

To run the project follow these instructions:

  1. download the repository;

  2. open main.py and change the values in order to obtain the expressions you prefer. You can follow the instructions on the comments;

  3. the script will output both the neutral and expressive faces.

Requirements

Software Version Required
Python >= 3.5 Yes
MATLAB >= R2017b Yes
MATLAB engine * Yes
Numpy (Python Package) Tested on v1.13.3 Yes
Scikit-learn (Python Package) Tested on v0.19.1 Yes
h5py (Python Package) Tested on v0.19.1 Yes

*the installation procedure for Matlab engine for Python is available here

Report

A copy of the report (italian) can be found here.

License

Licensed under the term of MIT License.

facial-expression-prediction's People

Contributors

fralomba avatar sestoale avatar

Stargazers

 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.