Skip to content

This project detects emotion in a human face using a CNN Model trained on 28,000 images.

Notifications You must be signed in to change notification settings

apru02/Face-Expression-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Detection and Emotion Recognition

This Python script uses computer vision and deep learning techniques to perform real-time face detection and emotion recognition using a convolutional neural network (CNN) model.

Requirements

Make sure you have the following libraries installed:

  • NumPy
  • Matplotlib
  • OpenCV (cv2)
  • TensorFlow
  • PyWavelets (pywt)

You can install these dependencies using the following:

pip install numpy matplotlib opencv-python tensorflow pywavelets

Usage

  1. Clone the repository
    git clone https://github.com/yourusername/your-repo.git
    cd your-repo
  2. Run the face_detect.py script:
    python face_detect.py

The script will open your webcam and perform face detection and emotion recognition in real-time.

Emotion Classes

The model classifies emotions into the following classes:

  • Angry
  • Fear
  • Happy
  • Neutral
  • Sad
  • Surprise

Additional Notes: The emotion prediction is displayed in real-time on the webcam feed. Press 'q' to exit the application.

  • Download the training and validation dataset from here

About

This project detects emotion in a human face using a CNN Model trained on 28,000 images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published