Case Study
Case Study
Case Study
Input:-
import cv2
from google.colab.patches import cv2_imshow
def detect_faces(image_path):
# Load the pre-trained face detection model
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +
'haarcascade_frontalface_default.xml')