Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🧠 Real-Time Face Detection with OpenCV

This project is a simple real-time face detection system using Python and OpenCV.

It captures video from your webcam, detects faces using Haar Cascade classifiers, draws bounding boxes around them, and saves each detected face only once to a folder.


📷 Features

  • Real-time face detection from webcam
  • Face detection using Haar Cascades
  • Green rectangle drawn around each face
  • Each detected face is saved only once
  • Saved images are stored in a folder called saved_faces

🚀 How to Run

1. Clone the repository:

git clone https://github.com/Utkuersy/Python_Face_Detection_Project.git
cd Python_Face_Detection_Project

2. Install requirements:

pip install opencv-python

3. Run the script:

python face_detection.py

✅ Press q to quit the webcam window.


📁 Project Structure

Python_Face_Detection_Project/
│
├── face_detection.py       # Main script for face detection
├── saved_faces/            # Folder to store detected face images
└── README.md               # This documentation

🛠 Requirements

  • Python 3.7 or higher
  • OpenCV (opencv-python)

💡 Future Plans

  • Add face recognition support (DeepFace or InsightFace)
  • Add logging with timestamps
  • Optimize duplicate face detection
  • Build a web or mobile interface

👤 Author

Utku İlker ERSOY
LinkedIn
GitHub


About

Real-Time Face Detection using OpenCV and Python This project captures video from your webcam, detects faces using Haar cascades, draws bounding boxes around them, and saves each face only once based on coordinates. A lightweight, real-time face detection system built with OpenCV.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages