Skip to content

delademf/facial_recognition_haarCascade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face and Eye Detection using OpenCV using haarCascade Opencv


This Python script demonstrates face and eye detection using OpenCV. It captures video from your computer's webcam, rescales the frames, converts them to grayscale, and then applies Haar cascades to detect faces and eyes. Detected faces and eyes are outlined with rectangles in the video feed.

Prerequisites

Before running the script, make sure you have the following dependencies installed:

  • Python 3.x
  • OpenCV (cv2)

You can install OpenCV using pip:

pip install opencv-python-headless

Usage

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/your-repo-name.git
  2. Change your current directory to the project folder:

    cd facial_recognition_haarCascade
  3. Run the Python script:

    python face_and_eye_detection.py

    This script will open your computer's webcam and start detecting faces and eyes in the live video feed. Detected faces are outlined in green, and detected eyes are outlined in green.

  4. To exit the script, press the 'q' key.

License

This project is open-source and available under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages