Skip to content

This Python script uses OpenCV to detect the frontal part of a human face. It will detect the face and draw a red box to highlight the area where it detected a face.

Notifications You must be signed in to change notification settings

anirbandey303/face-recognition-and-expression-detection-openCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face Recognition and Facial Expression Detection with TensorFlow and openCV

This model is capable of detecting face expressions and also recognise faces. We're using Python

Getting Started

Download the ZIP file or Clone this repository from you Command Prompt or Terminal

$git clone https://github.com/anirbandey303/face-recognition-and-expression-detection-openCV.git

Prerequisites

Make sure these are installed on your computer.

  • Python 3.7
  • TensorFlow
  • openCV
  • Keras

Installing

Install Python3. To start off we will install Python3.

  1. Open up the Terminal (Applications > Accessories > Terminal).

  2. Copy/Paste the following line of code into Terminal and then press enter:

$ sudo apt-get install python3
  1. The Terminal will then ask you for you're password, type it and then press enter.
  2. Check installation with
$ python --version

Install TensorFlow

$ pip install tensorflow

Install Keras.

$ pip install --upgrade keras==2.2.4

Install openCV

$ pip install opencv-python

Running the model

If you have installed all the required packages, you're ready to run the model. Go to the required directory

$ cd face-recognition-and-expression-detection-openCV
$ cd src
$ python face_detection_t_v2.py

Built With

  • Python3.7
  • TensorFlow
  • Keras
  • openCV

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to me.

Authors

See also the list of contributors who participated in this project.

About

This Python script uses OpenCV to detect the frontal part of a human face. It will detect the face and draw a red box to highlight the area where it detected a face.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages