This is the Official Repository of SAMARTH for Open Odyssey 1.0. Contribute your Python Projects, Games, and AI/ML Projects in our Repository 🔥. Make Quality Contributions 😎
This PR introduces a real-time face detection feature using OpenCV and Haar Cascade. The system captures live video feed from the webcam, detects faces in real-time, and highlights them with a rectangle.
Key Changes:
Added face_detection.py script that captures video from the webcam.
Integrated Haar Cascade (haarcascade_frontalface_default.xml) for face detection.
Converts video frames to grayscale and detects faces.
Draws a rectangle around detected faces in each frame.
Program terminates when the 'q' key is pressed.
How to Test:
Run the script using python face_detection.py.
Ensure the webcam opens and faces are detected.
Press 'q' to exit the program.
This feature enhances the application with basic face recognition capabilities, providing a foundation for further development in computer vision.
Real-Time Face Detection using OpenCV
Description:
This PR introduces a real-time face detection feature using OpenCV and Haar Cascade. The system captures live video feed from the webcam, detects faces in real-time, and highlights them with a rectangle.
Key Changes:
face_detection.py
script that captures video from the webcam.haarcascade_frontalface_default.xml
) for face detection.How to Test:
python face_detection.py
.This feature enhances the application with basic face recognition capabilities, providing a foundation for further development in computer vision.