Skip to content

A tool to evaluate the mood of faces recognised by one or more cameras continuously in real time.

Notifications You must be signed in to change notification settings

MrF3lix/mood-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mood detection

A small application to classify the mood of one or more faces captured by a webcam.

Setup

To run this application locally you need to have the following things installed.

  • Python 3 >
  • OpenCV
  • Dlib
  • Sklearn
  • Pickel

The dataset I used is Cohn-Kanade (CK and CK+) database. http://www.consortium.ri.cmu.edu/ckagree/

Once the dataset is downloaded run python3 prep.py to cleanup the dataset and sort it correctly.

After sorting and cleaning up the model needs to be trained. This can be done by running python3 trainer.py.

And to use the mood detection after creating the model run python3 app.py.

Further improvements

  • The emotions that should be detected are now defined in 3 sperate files, this should be unified.
  • The accuracy can be improved by using more data and making sure that each data class has a similar amount of training data.

About

A tool to evaluate the mood of faces recognised by one or more cameras continuously in real time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published