This code is a simple implementation of Haar Cascade to detect faces in images using OpenCV.
OpenCV (cv2)
Clone the repository to your local machine
Run the script on Jupyter Notebook or Google Colab
The code will search for all .jpg images in the current working directory and detect faces in each image.
The program will display each image with a rectangle around the detected face.
Press any key to move on to the next image or wait for 2 seconds.
Repeat the process for all images in the directory.
The Haar Cascade used in the code is haarcascade_frontalface_default.xml which is pre-trained for frontal face detection. If you want to detect faces in other orientations, you can use a different Haar Cascade available in OpenCV or train your own Haar Cascade.