Skip to content

JakubDz2208/face_recogn

Repository files navigation

Face_recogn

Face recogn is program, that recognize your facial expression by 7 categories like:

  • Angry
  • Disgust
  • Fear
  • Happy
  • Neutral
  • Sad
  • Surprised

By using your webcam and scanning your face it in real time.

Get started

To start using Face recogn you have to install Python 3.x, then using comamnd line install packages from requirements.txt

pip install -r /path/to/requirements.txt

Then move to project folder and just run python main.py

File list

In project there are 4 files like main.py, model.py, face_recogn.h5 and haarcascade_frontalface_default.xml

main.py

This is main file, which use our saved neural network model and implement it to our camera. The haarcascade_frontalface_default.xml is used for finding face and face_recogn.h5 for figure out and display our current expresion.

Neutral face:

image

Happy face:

image

Surprised face:

image

model.py

Here we have our CNN (convolutional neural network) model, there are training and validation images to get best accuracy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages