https://github.com/si-ddhartha/face-detection-haar-cascade
Python program that uses Haar Cascade Classifier to automatically detect faces in an image or video.
https://github.com/si-ddhartha/face-detection-haar-cascade
face-detection haar-cascade-classifier opencv
Last synced: about 2 months ago
JSON representation
Python program that uses Haar Cascade Classifier to automatically detect faces in an image or video.
- Host: GitHub
- URL: https://github.com/si-ddhartha/face-detection-haar-cascade
- Owner: Si-ddhartha
- Created: 2023-04-23T16:49:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-23T16:56:45.000Z (about 3 years ago)
- Last Synced: 2025-03-14T23:24:36.602Z (over 1 year ago)
- Topics: face-detection, haar-cascade-classifier, opencv
- Language: Python
- Homepage:
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face-Detection
Python program that uses Haar Cascade Classifier to automatically detect faces in an image or video.
The program takes an input image or a video frame and uses OpenCV library to process it. Specifically, it applies the Haar Cascade Classifier, which is a machine learning-based approach for object detection
To use the classifier, the program first loads the pre-trained XML file that contains the features for detecting faces. It then converts the input image to grayscale and applies the classifier to detect the faces in the image. The classifier works by sliding a window over the image and comparing the features in each window to those in the XML file. If the features match, the window is considered to contain a face.
Once the program has detected the faces in the image, it draws a rectangle around each face to indicate its location. The output image with the detected faces is then displayed.
