cap = cv2.VideoCapture(\'./data/video.mp4\') while True: ret,frame = cap.read() if ret == False: break frame = pipeline(frame,color=\'bgr\') cv2.imshow(\'gender detection\',