in mapillary_tools/commands/__main__.py [0:0]
def add_general_arguments(parser, command):
if command in ["sample_video", "video_process", "video_process_and_upload"]:
parser.add_argument(
"video_import_path",
help="Path to a video or directory with one or more video files.",
)
parser.add_argument(
"import_path",
help='Path to where the images from video sampling will be saved. If not specified, it will default to "mapillary_sampled_video_frames" under your video import path',
nargs="?",
)
parser.add_argument(
"--skip_subfolders",
help="Skip all subfolders and import only the images in the given video_import_path",
action="store_true",
default=False,
required=False,
)
elif command in ["upload"]:
parser.add_argument(
"import_path",
help="Path to your images",
nargs="+",
)
elif command in ["process", "process_and_upload"]:
parser.add_argument(
"import_path",
help="Path to your images",
)
parser.add_argument(
"--skip_subfolders",
help="Skip all subfolders and import only the images in the given import_path",
action="store_true",
default=False,
required=False,
)