Skip to content

A real time face detection that captures video from your webcam. Highlights detected faces with bounding boxes in the live feed.

Notifications You must be signed in to change notification settings

0779011218/FaceDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FaceDetection 👤📹

FaceDetection
Python
OpenCV
License

Welcome to the FaceDetection repository! This project offers a real-time face detection solution that captures video from your webcam. It highlights detected faces with bounding boxes in the live feed. If you want to dive right in, you can find the latest version of the project here. Download and execute the necessary files to get started.

Table of Contents

Features

  • Real-time Face Detection: Utilizes webcam input to detect faces in real-time.
  • Bounding Boxes: Displays bounding boxes around detected faces for easy identification.
  • User-Friendly Interface: Simple and intuitive design for ease of use.
  • Lightweight: Efficient performance with minimal resource usage.

Technologies Used

This project employs a variety of technologies to achieve its functionality:

  • Python: The primary programming language used.
  • OpenCV: A powerful library for computer vision tasks.
  • cv2: A module from OpenCV for image processing.
  • cvzone: Simplifies the integration of computer vision functions.
  • Mediapipe: Facilitates face detection and tracking.
  • Face Recognition: Allows for advanced identification features.
  • Real-time Processing: Ensures quick response and performance.

Installation

To set up the project, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/0779011218/FaceDetection.git
  2. Navigate to the Directory:

    cd FaceDetection
  3. Install Dependencies: Use pip to install the required libraries:

    pip install -r requirements.txt
  4. Download and Execute: For the latest version, visit the Releases section. Download the necessary files and execute them to start the application.

Usage

To run the application, execute the following command in your terminal:

python main.py

This command will launch the webcam feed, and you will see bounding boxes around detected faces.

Key Commands

  • Start Detection: Automatically starts detecting faces when the application launches.
  • Exit Application: Press q to quit the application.

Code Structure

Here’s a brief overview of the code structure in the repository:

FaceDetection/
│
├── main.py              # Main application file
├── requirements.txt     # List of dependencies
├── utils.py             # Utility functions for face detection
├── README.md            # Project documentation
└── assets/              # Folder for images and other assets

main.py

This is the main file that initializes the webcam and runs the face detection algorithm.

utils.py

This file contains helper functions that assist in processing images and detecting faces.

Contributing

We welcome contributions to improve the project. To contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/YourFeature
  3. Make your changes and commit them:
    git commit -m "Add your message here"
  4. Push to the branch:
    git push origin feature/YourFeature
  5. Create a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • OpenCV Team: For providing the OpenCV library that makes this project possible.
  • Mediapipe Team: For their work on face detection and tracking.
  • Community Contributors: For their feedback and suggestions that help improve the project.

For more information, visit the Releases section to download the latest files and start using FaceDetection today!

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages