def add_basic_arguments()

in mapillary_tools/commands/sample_video.py [0:0]


    def add_basic_arguments(self, parser: argparse.ArgumentParser):
        group = parser.add_argument_group("video process options")
        group.add_argument(
            "--video_sample_interval",
            help="Time interval for sampled video frames in seconds",
            default=2,
            type=float,
            required=False,
        )
        group.add_argument(
            "--video_duration_ratio",
            help="Real time video duration ratio of the under or oversampled video duration.",
            type=float,
            default=1.0,
            required=False,
        )
        group.add_argument(
            "--video_start_time",
            help="Video start time specified in YYYY_MM_DD_HH_MM_SS_sss in UTC. For example 2020_12_28_12_36_36_508 represents 2020-12-28T12:36:36.508Z",
            default=None,
            required=False,
        )
        group.add_argument(
            "--skip_subfolders",
            help="Skip all subfolders and import only the images in the given directory path.",
            action="store_true",
            default=False,
            required=False,
        )
        group.add_argument(
            "--rerun",
            help="Re-sample all videos. Note it will REMOVE all the existing video sample directories",
            action="store_true",
            default=False,
            required=False,
        )
        group.add_argument(
            "--skip_sample_errors",
            help="Skip errors from the video sampling",
            action="store_true",
            default=False,
            required=False,
        )