Skip to content

About

An application for face recognition and prediction of gender, age range and emotional state.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Face Analysis Application

Overview

This application detects faces in real-time using a webcam and predicts gender, age range, and emotional state based on the face captured. It uses pre-trained models for age, gender, and emotion recognition and displays the results on the video stream.

Features

  • Gender Recognition: Classifies the detected face as Male or Female.
  • Age Estimation: Predicts the age of the person and maps it to an age range.
  • Emotion Detection: Recognizes one of the following emotions: Angry, Happy, Sad, Surprise, Neutral.

Installation

  1. Clone the repository:
git clone https://github.com/1adore1/face-analysis.git
cd face-analysis
  1. Install required libraries:
pip install opencv-python torch numpy

Usage

  1. Run the application:
python face_analysis.py
  1. The application will open a video stream from your webcam. Detected faces will be annotated with:
  • Predicted gender (Male/Female)
  • Estimated age range (e.g., 21-25, 36-40)
  • Recognized emotion (Angry, Happy, Sad, Surprise, Neutral)
  1. Quit the application by pressing the q key.

About

An application for face recognition and prediction of gender, age range and emotional state.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages