1 | initial version |
you're trying to load a cascade file here:
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
but that failed, it did not find it. (it's not the image ..)
either copy that to where you run the script, or use an absolute path for the cascade.