Skip to content

kathuriasimran/face_detection-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Face Detection with OpenCV

A simple face detection project built using OpenCV’s Haar Cascades.
This is a practical implementation I built after completing courses on OpenCV.


🧠 Motivation & Background

While studying OpenCV, I learned about object detection, cascades, and image processing pipelines.
To solidify my understanding, I decided to build a hands-on face detection project that:

  • Detects faces in real time (via webcam)
  • Draws bounding boxes around detected faces
  • Is light-weight and easy to extend

This project is a result of applying theory in code and experimenting with parameters and detection accuracy.


🗂️ Project Structure

  • face_detect.py — main Python script that captures video and performs face detection
  • haarcascade_frontalface_default.xml — pre-trained cascade file used by OpenCV
  • sample_images/ — (optional) some test images you used
  • README.md — this documentation

🚀 Getting Started

Prerequisites

You’ll need:

  • Python (3.6+ recommended)
  • OpenCV library for Python
  • (Optional) imutils or numpy if you used them

You can install dependencies with:

pip install opencv-python
# If using extra libs:
pip install numpy imutils
python face_detect.py

About

face detection using opencv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages