This is a simple real-time face detection script using OpenCV in Python. It utilizes Haar cascade classifiers to detect faces from a webcam feed and highlights them with a bounding box.
Ensure you have Python installed along with the required dependencies:
pip install opencv-python
Clone this repository:
git clone https://github.com/yourusername/face-detection-opencv.git cd face-detection-opencv
Run the script:
python face_detection.py
q to exit the program.When a face is detected, a bounding box appears around it:

This project is licensed under the MIT License.
Feel free to contribute or modify the code to improve detection accuracy!