Giter Site home page Giter Site logo

nishantwestside / emotion-recognition-model Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.94 MB

This is a Python implementation of an emotion recognition model trained on the FER-2013 dataset, designed to analyze facial expressions and classify them into different emotion categories such as happy, sad, and angry. The model achieved an accuracy of 65% on a validation set of images.

Python 100.00%

emotion-recognition-model's Introduction

Emotion Recognition Model

This is a Python implementation of an emotion recognition model using machine learning techniques. The model is designed to analyze facial expressions and classify them into different emotion categories such as happy, sad, angry, etc.

Dependencies

The following Python packages are required to run the emotion recognition model:

numpy opencv-python keras

Dataset

The emotion recognition model was trained on the FER-2013 dataset, which consists of 35,887 grayscale images of faces with 48x48 pixels. Each image is labeled with one of seven emotion categories: angry, disgust, fear, happy, sad, surprise, or neutral.

The dataset is provided in a CSV file format with two columns: emotion and pixels. The emotion column contains an integer label between 0 and 6 corresponding to the emotion category, while the pixels column contains a string of comma-separated pixel values for each image.

To preprocess the dataset, we first split the pixels column into separate pixel values and reshape them into a 48x48 matrix. We then normalized the pixel values to be between 0 and 1 and split the data into training, validation, and test sets.

Usage

To use the emotion recognition model, you can run the emotion_detector.py script. This script takes an input image path as an argument and outputs the predicted emotion category.

emotion-recognition-model's People

Contributors

nishantwestside avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.