face_casc = cv2.CascadeClassifier(face_casc_path) #frontal_face_default # face detection face = face_casc.detectMultiScale(gray,scaleFactor=1.1,minNeighbors =5,flags=