Giter VIP home page Giter VIP logo

face_detection_opencv's Introduction

Face Recognition with OpenCV

Project Description

This project implements a face recognition system using OpenCV in Python. It involves creating a dataset of faces and recognizing them in real-time using a webcam. The project uses the haarcascade_frontalface_default.xml file for detecting faces and the face_recognize.py and create_data.py scripts for creating and recognizing face data.

๐ŸŽฏ Objective

The objective of this project is to develop a face recognition system capable of detecting and recognizing faces in real-time, leveraging the power of OpenCV's Haar Cascade Classifiers.

๐Ÿ”‘ Key Features

  • ๐Ÿ“ธ Real-time face detection and recognition
  • ๐Ÿ“‚ Creation of a face dataset using a webcam
  • ๐Ÿ–ฅ๏ธ Utilizes OpenCV's pre-trained Haar Cascade Classifier for face detection

๐Ÿ› ๏ธ Hardware and Software Requirements

  • Hardware: A computer with a webcam
  • Software:
    • Python
    • OpenCV

๐Ÿ“ Folder Structure

  • OpenCV Version check.py: Python script to check the installed OpenCV version.
  • haarcascade_frontalface_default.xml: Pre-trained model for face detection.
  • datasets: Folder containing datasets used for training the face recognition model.
    -- Dataset; Folder Containing Created Dataset
    --face_recognize.py: Script for recognizing faces.
    --create_data.py: Script for creating face data.
    --haarcascade_frontalface_default.xml: Pre-trained model for face detection.
  • Face Detection: Folder containing files or resources related to face detection.
  • studysession: Folder with an unclear purpose from the image.

๐ŸŽ›๏ธ How to Use

1. Install Required Libraries

Ensure you have Python installed. Install the required libraries using pip:

pip install opencv-python

2. Create Face Data

Run the create_data.py script to capture and store face data from the webcam:

python create_data.py

3. Recognize Faces

Run the face_recognize.py script to recognize and label faces in real-time from the webcam:

python face_recognize.py

Ensure that the haarcascade_frontalface_default.xml file is in the same directory as the scripts.

๐Ÿ“ธ Sample Usage Creating Face Data The create_data.py script captures images from the webcam and stores them as face data for recognition. This script will guide you through the process of creating a dataset of faces.

Recognizing Faces The face_recognize.py script uses the created dataset to recognize and label faces in real-time. This script will display the webcam feed with recognized faces labeled accordingly.

Dependencies Python OpenCV

face_detection_opencv's People

Contributors

jayxtg avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.