1import cv
2cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # try downloading the xml file again and make sure to put it in the same directory
3cap = cv2.Videocapture(0) # change this value to 1 or -1 or 0 based on your os
4cv2.imread('image')# check the spelling and make sure that the image is in the same directory