Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faseeh41/face_and_emotion_detection
Performing image classification for detection of various human emotions using CNN Architecture.
https://github.com/faseeh41/face_and_emotion_detection
emotion-detection facial-recognition keras opencv tensorflow
Last synced: 5 days ago
JSON representation
Performing image classification for detection of various human emotions using CNN Architecture.
- Host: GitHub
- URL: https://github.com/faseeh41/face_and_emotion_detection
- Owner: faseeh41
- License: mit
- Created: 2024-07-21T06:14:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T07:42:59.000Z (4 months ago)
- Last Synced: 2024-07-22T09:17:07.925Z (4 months ago)
- Topics: emotion-detection, facial-recognition, keras, opencv, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 12.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facial Recognition and Emotion Detection
----------
----------### Emotion Detection
Humans are used to non verbal communication. The emotions expressed increases the clarity of any thoughts and ideas. It becoms quite interesting when a computer can capture this complex feature of humans, ie emotions. This topic talks about building a model which can detect an emotion from an image. There key points to be followed are:
1. Data gathering and augmentation
The dataset taken was **"fer2013"**. It can be downloaded through the link "https://github.com/npinto/fer2013". Image augmentation was performed on this data.
2. Model building
The model architecture consists of CNN Layer, Max Pooling, Flatten and Dropout Layers.
3. Training
The model was trained by using variants of above layers mentioned in model building and by varying hyperparameters. The best model was able to achieve 60.1% of validation accuracy.
4. Testing
The model was tested with sample images. It can be seen below:
#### The model will be able to detect 7 types of emotions:-
##### Angry , Sad , Neutral , Disgust , Surprise , Fear , and Happy## Usage:
### For Face Detection, and Emotion Detection Code
Refer to the notebook /Emotion_Detection.ipynb..
I have trained an emotion detection model and put its trained weights at /Models### Train your Emotion Detection Model
To train your own emotion detection model, Refer to the notebook /facial_emotion_recognition.ipynb### For Emotion Detection using Webcam
#### Clone the repo:
Run `pip install -r requirements.txt`
` python Emotion_Detection.py`