Skip to content

FitzTata/face-emotion-recognize

Repository files navigation

face-emotion-recognize #FER #keras #multi-faces #rest-api

Face emotions recognize

Solving Face emotions recognise problen with keras-built nn.
Dataset : FER 2013 (https://www.kaggle.com/datasets/msambare/fer2013)
Referencies: Haar cascade classifiers (https://github.com/opencv/opencv/tree/master/data/haarcascades)
Stack: Keras, TF, numpy, REST-API keras, flask

I used 3 different Haar classifiers, because they really depends on brightness, contrast and gamma of original picture. So you can choose your favorite one, or just use it as is.

How to use:

  1. Copy repository from github using

git clone https://github.com/FitzTata/face-emotion-recognize

and install some requirements using

pip install -r requirements.txt

  1. Run file run_server.py
  2. Put photos in ./test_pics
  3. Edit client.py path to photo like that

ln9: IMAGE_PATH = "../test_pics/test1.jpg" to "../test_pics/your_pic.jpg"

  1. Run file client.py
  2. You and your photo are awesome! You will see result in about 3 seconds (depends on your pc resources).

Example:
alt text

About

Face emotions recognise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors