Skip to content

Small application using a custom convolutional neural network and a face detection algorithm of opencv for emotion detection within a camera feed

Notifications You must be signed in to change notification settings

TimWue/emotion-detection

Repository files navigation

Emotion Detection

This application uses the camera stream in order to detect faces and classify the shown emotion. For this purpose a custom convolutional neural network (cnn) was trained on the FER-2013 dataset (https://www.kaggle.com/datasets/msambare/fer2013) and exported for the use in client-side code. Face detection is done by using the haar-cascade detection of OpenCV (https://docs.opencv.org/3.4/db/d28/tutorial_cascade_classifier.html).

The output of emotion detection corresponds to a probability for the emotion class, which is most likely present. In order to be able to manipulate the sensitivity of the classification, the output-probability is compared to a user defined threshold. If the probability is higher than the defined threshold, the emoji at the bottom right corner of the camera stream will show the detected emotion. Additionally real time information about each detected emotion (even if the threshold is higher than the probability) is shown below the camera stream.

The application is deployed using github-pages and is accessable under https://timwue.github.io/emotion-detection/. The view is optimized for mobile.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

About

Small application using a custom convolutional neural network and a face detection algorithm of opencv for emotion detection within a camera feed

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published