Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emotion Recognition #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

21 changes: 21 additions & 0 deletions emotion_recognition/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Emotion Recognition
The emotion classifier is wrapped inside a class and is present in ```emotion_class.py```.
The model has been implemented using ***Keras***

### The class : emotionRecognizer
### class variables :
img_rows, img_cols
face_cascade
modelFile
configFile
emotion
model

### The methods :
```loadModel()``` : Loads the saved model
```predict(x)``` : Predicts the emotion using the input image *x*.
```getFaces(img)``` : Uses ```openCV Haar Cascade to detect faces in the image *img*.

### The working :
From the video feed, we first run ```getFaces()``` method to detect faces in the image.
If a face is found, it is then fed into ```predict()``` to classify the emotion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.