cap = cv2.VideoCapture(0) while True: # Grab a single frame of video ret, frame = cap.read() gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) faces = f