Skip to content

face detection machine learning algorithm using python opencv package

Notifications You must be signed in to change notification settings

Teja78906/FaceDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Face Detection and Recognition

This repository contains code for real-time face detection and recognition using the Fisherfaces algorithm.

Description

The face detection and recognition system uses the OpenCV library to perform real-time face detection and recognition on a live video stream. It detects faces in the video frames, preprocesses the face images, and then classifies them using the Fisherfaces algorithm. The detected faces are surrounded by rectangles, and the recognized faces are labeled with their corresponding IDs and confidence scores.

Features

  • Real-time face detection and recognition
  • Preprocessing techniques like histogram equalization for improved recognition performance
  • Training of the face classifier using the Fisherfaces algorithm
  • Draw rectangles around detected faces and label recognized faces

Requirements

  • Python 3.x
  • OpenCV (cv2) library
  • PIL library
  • Numpy library

Usage

  1. Clone the repository:
git clone https://github.com/Teja78906/face-detection-recognition.git
  1. Install the required libraries:
pip install opencv-python pillow numpy
  1. Run the UserDataCapturingUtil.py
python UserDataCapturingUtil.py

this will capture the training data used by the faceDetector algorithm for face detection

  1. Run the faceDetector.py script:
python faceDetector.py
  1. The script will open the video capture and start detecting and recognizing faces in real-time.

Customization

You can adjust the confidence threshold for face recognition by modifying the confidence_threshold parameter in the detect() function. Experiment with different preprocessing techniques in the preprocess_image() function to enhance the quality of input images.

About

face detection machine learning algorithm using python opencv package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages