scripts/create_frame_image_dataset.py
def create_frame_image_dataset(excel_filepath: pathlib.Path,
                               config_filepath: pathlib.Path,
                               src_video_dir: pathlib.Path,
                               dst_frame_dir: pathlib.Path) -> None:
    """
    Copies all frames for all .mjpg video files in a directory to a new directory and stores them as .jpg files.
    :param excel_filepath: Path to the excel file with label information
    :param config_filepath: Path to configuration file
    :param src_video_dir: Path to the source directory containing video file
    :param dst_frame_dir: Path to the destination root directory to save frame images
    :return:
    """

    dataset_config = config.load_config(config_filepath=config_filepath)
    label_config_list = dataset_config["labels"]
    for label_config in label_config_list:
        label_name = label_config["name"]
        logging.info("Processing video files for label %s", label_name)

        movie_to_images.split_video_files_to_frame_files(src_video_dir=src_video_dir / label_name,
                                                         excel_path=excel_filepath,
                                                         dst_frame_dir=dst_frame_dir,
                                                         label_config=label_config)

    Copies all frames for all .mjpg video files in a directory to a new directory and stores them as .jpg files.
    :param excel_filepath: Path to the excel file with label information
    :param config_filepath: Path to configuration file
    :param src_video_dir: Path to the source directory containing video file
    :param dst_frame_dir: Path to the destination root directory to save frame images
    :return:
    
Copies all frames for all .mjpg video files in a directory to a new directory and stores them as .jpg files.
Copies all frames for all . mjpg video files in a directory to a new directory and stores them as . jpg files .
def create_frame_image_dataset(excel_filepath: pathlib.Path,
                               config_filepath: pathlib.Path,
                               src_video_dir: pathlib.Path,
                               dst_frame_dir: pathlib.Path) -> None:
    dataset_config = config.load_config(config_filepath=config_filepath)
    label_config_list = dataset_config["labels"]
    for label_config in label_config_list:
        label_name = label_config["name"]
        logging.info("Processing video files for label %s", label_name)
        movie_to_images.split_video_files_to_frame_files(src_video_dir=src_video_dir / label_name,
                                                         excel_path=excel_filepath,
                                                         dst_frame_dir=dst_frame_dir,
                                                         label_config=label_config)
def create_frame_image_dataset ( excel_filepath : pathlib . Path , config_filepath : pathlib . Path , src_video_dir : pathlib . Path , dst_frame_dir : pathlib . Path ) -> None : dataset_config = config . load_config ( config_filepath = config_filepath ) label_config_list = dataset_config [ "labels" ] for label_config in label_config_list : label_name = label_config [ "name" ] logging . info ( "Processing video files for label %s" , label_name ) movie_to_images . split_video_files_to_frame_files ( src_video_dir = src_video_dir / label_name , excel_path = excel_filepath , dst_frame_dir = dst_frame_dir , label_config = label_config )
Copies all frames for all .mjpg video files in a directory to a new directory and stores them as .jpg files.
Copies all frames for all . mjpg video files in a directory to a new directory and stores them as . jpg files .
"""
    Copies all frames for all .mjpg video files in a directory to a new directory and stores them as .jpg files.
    :param excel_filepath: Path to the excel file with label information
    :param config_filepath: Path to configuration file
    :param src_video_dir: Path to the source directory containing video file
    :param dst_frame_dir: Path to the destination root directory to save frame images
    :return:
    """
None
excel_filepath
pathlib.Path
Path to the excel file with label information
Path to the excel file with label information
config_filepath
pathlib.Path
Path to configuration file
Path to configuration file
src_video_dir
pathlib.Path
Path to the source directory containing video file
Path to the source directory containing video file
dst_frame_dir
pathlib.Path
Path to the destination root directory to save frame images
Path to the destination root directory to save frame images