I'm using this code to detect the faces in an image and get the rectangle points:
f_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +'haarcascade_frontalface_default.xml')#cv2.data.haarcascades +
However, some of the faces in the images are not detected. I tried modifying the parameters like minNeighbors etc. Any ideas?
This is what the image looks like after the mask:
I'm using this code to detect the faces in an image and get the rectangle points: f_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +'haarcascade_frontalface_default.xml')#cv2.data.haarcascades +
e_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_eye.xml')
rectangles = [] masked = [] phonyimg =[] i = 0 for image in images:
gray = cv2.cvtColor(frame, cv.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray)
However, some of the faces in the images are not detected. I tried modifying the parameters like minNeighbors etc. Any ideas? This is what the image looks like after the mask:
?