this coding only works for one image. I want to make blurring for 1 folder but I'm not sure how. Can someone teach me.
import numpy as np
import os.path, sys
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
path = r"C:\Users\Asus\Downloads\faceBlurring"
dirs = os.listdir(path)
img = cv2.imread("group.jpg")
detections = face_cascade.detectMultiScale(img,scaleFactor=1.1,minNeighbors=6)
for face in detections:
x,y,w,h = face
img[y:y+h,x:x+w] = cv2.GaussianBlur(img[y:y+h,x:x+w],(15,15),cv2.BORDER_DEFAULT)
cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
cv2.imshow("output",img)
cv2.waitKey(0)
cv2.destroyAllWindows() ```