This repository contains code for Automatic Facial Expression Recognition using feature extraction on spatial data with Convolutional Neural Networks (CNN) and Recurrent Neural Networks (RNN). The project uses OpenCV for image processing and various publicly available datasets from the internet for training and testing the models. The code is written in Python 3.8.
Facial expression recognition is a key component in human-computer interaction, enabling systems to interpret and respond to human emotions. This project focuses on extracting spatial features from facial images and utilizing CNNs and RNNs to classify different facial expressions.
- Feature Extraction: Uses OpenCV to preprocess and extract features from images.
- Modeling: Combines the power of CNNs for spatial feature extraction and RNNs for temporal dynamics.
- Datasets: Utilizes various publicly available datasets for comprehensive training and evaluation.
- Python 3.8: The code is compatible with Python 3.8.
-
Clone the repository
-
Create and activate a virtual environment:
python3.8 -m venv venv source venv/bin/activate
-
Install the required packages
The project uses several publicly available datasets, including:
Download the datasets and place them in the data/
directory. Update the paths in the configuration file if necessary.
The model architecture consists of:
- Convolutional Neural Network (CNN): For extracting spatial features from the images.
- Recurrent Neural Network (RNN): For capturing temporal dynamics and dependencies in the features.