Skip to content

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.

Notifications You must be signed in to change notification settings

Utkuersy/Python_Face_Detection_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages