- Project Title : Facial Expression Recognition using Convolutional Neural Network *
-
Author : A. Peter Hudson *
============================================================
The Project folder Contains the following files and folders:
============================================================
-
CNN_model.py
-
DetectFacialExpression.py
-
FaceRecognitionUtility.py
-
TestImages.py
-
TrainDataset.py
-
haar_cascade_frontalface_default.xml
-
model.h5
-
Dataset - zip file
-
TestData - zip file
-
Weights - Folder
-
DatasetGenerator - Folder
============================================================
=========================
- File/Folder Description *
=========================
================================================================================================================================
-
CNN_model.py : A python file containing the code of the architecture of the CNN. The file is used as a module.
-
DetectFacialExpression.py : Python program for the real-time facial expression detection.
Command to run/execute the program - "python DetectFacialExpression.py"
-
FaceRecognitionUtility.py : Python program contains functions used for pre-processing of image. The file is used as a module.
-
TestImages.py: Python program to test the CNN model on images.
Command to run/execute the program - "python TestImages.py"
Note: Make sure the Directory path is correct in the program.
-
TrainDataset.py: Python program to train datasets to update weights for the model.
Command to run/execute the program - "python TrainDataset.py"
Note: Make sure the Directory path is correct in the program.
-
haar_cascade_frontalface_default.xml: The xml file used in face detection in an image. The file is used as a module.
-
model.h5: This file contains the precalculated or the newly created weights which is the output of the "TrainDataset.py".
-
Dataset.zip :
This zip file contains six directories of 6 different emotions namely - Anger, Happy, Sad, Surprise, Fear, Neutral.Each directory contains images under that category.
Used for training the CNN.
-
TestData.zip : This directory contains six directories of 6 different emotions namely - Anger, Happy, Sad, Surprise, Fear, Neutral.
Each directory contains images under that category.
Used for testing the CNN.
-
Weights - Folder
Contains weights obtained as the size of the dataset was increased.
-
DatasetGenerator - Folder
Contains two files.
-
fer2013.csv : This file contains pixel values of the images used for training.
-
reconstruct.py : Python program to gnerate the images from fer2013.csv file.
-
===================================================================================================================================