Skip to main content
QUICK REVIEW

[Paper Review] Emotion Detection using Image Processing in Python

Raghav Puri, Archit Gupta|arXiv (Cornell University)|Dec 1, 2020
Face recognition and analysisComputer Science3 references11 citations
TL;DR

This paper presents a Python-based system for real-time facial emotion detection using OpenCV and NumPy, leveraging pre-trained datasets to classify emotions from live camera feeds or static images. The method achieves reliable emotion recognition through facial feature extraction and comparison with training data, demonstrating feasibility and accuracy in practical applications.

ABSTRACT

In this work, user's emotion using its facial expressions will be detected. These expressions can be derived from the live feed via system's camera or any pre-exisiting image available in the memory. Emotions possessed by humans can be recognized and has a vast scope of study in the computer vision industry upon which several researches have already been done. The work has been implemented using Python (2.7, Open Source Computer Vision Library (OpenCV) and NumPy. The scanned image(testing dataset) is being compared to the training dataset and thus emotion is predicted. The objective of this paper is to develop a system which can analyze the image and predict the expression of the person. The study proves that this procedure is workable and produces valid results.

Motivation & Objective

  • To develop a practical, accessible system for detecting human emotions from facial expressions using computer vision.
  • To enable emotion recognition from both live video feeds and pre-existing images using a single framework.
  • To evaluate the feasibility and accuracy of a lightweight, open-source solution for emotion detection in real-world scenarios.
  • To provide a reproducible and extensible prototype using widely available tools like OpenCV and NumPy.

Proposed method

  • The system captures facial images in real time using a webcam or loads static images from memory.
  • It applies face detection using OpenCV's pre-trained Haar cascade classifier to localize the face in the image.
  • Facial landmarks and texture features are extracted from the detected face region for analysis.
  • The system compares the extracted features against a pre-labeled training dataset of facial expressions.
  • Emotion classification is performed using a machine learning model trained on the dataset, with predictions based on feature similarity.
  • The final output displays the predicted emotion (e.g., happy, sad, angry) on the image or video feed.

Experimental results

Research questions

  • RQ1Can a lightweight, open-source system accurately detect human emotions from facial expressions using standard computer vision tools?
  • RQ2How effective is the system in classifying emotions from both live video and static images?
  • RQ3To what extent does feature comparison with a training dataset enable reliable emotion prediction?
  • RQ4What is the performance of the system using only OpenCV and NumPy without deep learning frameworks?

Key findings

  • The system successfully detects and classifies facial emotions in real time using only OpenCV and NumPy, demonstrating practical feasibility.
  • Emotion recognition accuracy is validated through comparison with a labeled training dataset, showing consistent classification outcomes.
  • The method supports both live video input and static image processing, enhancing its usability across different scenarios.
  • The implementation proves effective for basic emotion detection tasks without requiring deep learning or complex models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.