def METHOD_NAME(video):
    if not os.path.exists("./temp"):
        os.makedirs("temp")
    # Temporary folder created to store the frames and audio from the video.
    temp_folder = "./temp"
    print("[INFO] temp directory is created")
    vidcap = cv2.VideoCapture(video)
    count = 0
    while True:
        success, image = vidcap.read()
        if not success:
            break
        cv2.imwrite(os.path.join(temp_folder, "{:d}.png".format(count)), image)
        count += 1