def result_exists()

in contentannotation/video2annotation.py [0:0]


def result_exists(video_filename):
    video_id = os.path.splitext(video_filename)[0]
    result_file = os.path.join(output_directory, f"{video_id}.json")
    error_file = os.path.join(output_directory, f"errors_{video_id}.json")
    return os.path.exists(result_file) or os.path.exists(error_file)