Skip to content

The Face Detection Application 🎭 is a real-time tool built with Python and OpenCV πŸ“Έ. It captures video from your webcam and detects faces using Haar Cascade Classifiers πŸ‘€. This user-friendly app is ideal for learning about computer vision 🌐 and serves as a foundation for exploring advanced topics like facial recognition! πŸš€βœ¨

License

Notifications You must be signed in to change notification settings

MohammadAshmir786/face-detection-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎭 Face Detection Application

Face Detection Preview

πŸ‘€ Overview

The Face Detection Application is a simple yet powerful tool that utilizes OpenCV to detect faces in real-time using your webcam. This project demonstrates the capabilities of computer vision and machine learning in a user-friendly manner. Whether you're a beginner looking to learn about face detection or a developer seeking to integrate face detection into your applications, this project is for you! πŸš€

πŸ“‹ Table of Contents

🌟 Features

  • πŸ‘€ Real-time face detection using the Haar Cascade Alt file.
  • πŸ“· Works seamlessly with your webcam.
  • πŸ–₯️ Simple and clean interface for easy interaction.
  • πŸ”§ Easy setup with minimal dependencies.
  • πŸ“œ Detailed logging to assist in debugging and error tracking.

βœ… Prerequisites

Before starting, make sure you have the following requirements:

  • Python 3.x 🐍
  • OpenCV library πŸ“¦

πŸ› οΈ Installation

  1. Clone the Repository:
    git clone https://github.com/yourusername/face-detection-app.git
    cd face-detection-app
    
  2. Install OpenCV: You can install OpenCV using pip:
    pip install opencv-python
    

πŸš€ How to Use

  1. Run the Application: Open your terminal or command prompt, navigate to the project directory, and use the following command:
    python face_detection.py
  • NOTE: If you are using a webcam, please make sure your webcam is connected and properly set up. πŸ“·
  1. View the Output: The application will launch a window showing the video stream from your webcam. Detected faces will be highlighted with rectangles. πŸ”

  2. Exit the Application: Press the ESC key to close the application window. ❌

πŸ“ Code Explanation

  • Haar Cascade Alt File: A pre-trained file used to identify face-like patterns in real-time video streams.
  • FaceDetector Class: Handles the initialization of the Haar Cascade classifier and webcam video feed.
  • capture_video Method: Captures video frames, detects faces using the classifier, and displays the output.
  • Logging: The application uses logging to provide feedback, error messages, and debug information.

🀝 Contributing

Contributions are welcome! If you have ideas for improving the project or adding new features, feel free to fork the repository and submit a pull request.

πŸ“„ License

This project is licensed under the MIT License. For more information, see the LICENSE file.

πŸ™ Acknowledgments

About

The Face Detection Application 🎭 is a real-time tool built with Python and OpenCV πŸ“Έ. It captures video from your webcam and detects faces using Haar Cascade Classifiers πŸ‘€. This user-friendly app is ideal for learning about computer vision 🌐 and serves as a foundation for exploring advanced topics like facial recognition! πŸš€βœ¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages