-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
721 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
import commands | ||
import process_csv | ||
import interpolation | ||
import post_process | ||
|
||
VERSION = "0.1.4" | ||
VERSION = "0.1.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import inspect | ||
from mapillary_tools.post_process import post_process | ||
|
||
|
||
class Command: | ||
name = 'post_process' | ||
help = 'Post process tool : Post process for a given import path, including import summary and grouping/moving based on import status.' | ||
|
||
def add_basic_arguments(self, parser): | ||
|
||
parser.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) | ||
|
||
def add_advanced_arguments(self, parser): | ||
# video file | ||
parser.add_argument('--video_file', help='Provide the path to a video file or a directory containing a set of Blackvue video files.', | ||
action='store', required=False, default=None) | ||
|
||
# post process | ||
parser.add_argument('--summarize', help='Summarize import for given import path.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--move_images', help='Move images corresponding to import status.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--move_duplicates', help='Move images in case they were flagged as duplicates.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--move_uploaded', help='Move images in case they were uploaded successfully.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--save_as_json', help='Save summary or file status list in a json.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--list_file_status', help='List file status for given import path.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--push_images', help='Push images uploaded in given import path.', | ||
action='store_true', default=False, required=False) | ||
parser.add_argument('--split_import_path', help='Provide the path where the images should be moved to based on the import status.', | ||
action='store', required=False, default=None) | ||
|
||
def run(self, args): | ||
|
||
vars_args = vars(args) | ||
|
||
post_process(**({k: v for k, v in vars_args.iteritems() | ||
if k in inspect.getargspec(post_process).args})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.