Data ScienceAIcomputer-visionpythonopencv

Face, Smile, and Eye Detection with Haar Cascades

By Alaa El-Maria
Picture of the author
Published on
Repository
https://github.com/Alaatahaelmaria/haarcascade-face-smile-and-eye
Tech
Python, OpenCV
haarcascade project

A classic OpenCV example enhanced with multi-stage cascades for robust real-time detection from webcam frames. Includes drawing overlays and FPS display.


Highlights

  • Separate cascades for faces, eyes, and smiles with tunable thresholds.
  • Grayscale conversion and histogram equalization for stability.
  • Simple UI overlay of detection boxes and labels.

Getting started

python detect.py --camera 0

Hi there! Want to support my work?

Stay Tuned

Want to become a AI Exper?
The best articles, links and news related to AI and Machine Learning delivered once a week to your

Stay Tuned

Want to become a AI Exper?
The best articles, links and news related to AI and Machine Learning delivered once a week to your