kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
a75b8762e5
commit
5318592ebe
|
@ -55,10 +55,6 @@ parser = SettingsParser(description='OpenDroneMap',
|
|||
yaml_file=open(context.settings_path))
|
||||
|
||||
def config():
|
||||
parser.add_argument('--images', '-i',
|
||||
metavar='<path>',
|
||||
help='Path to input images'),
|
||||
|
||||
parser.add_argument('--project-path',
|
||||
metavar='<path>',
|
||||
help='Path to the project folder')
|
||||
|
|
|
@ -220,13 +220,10 @@ class ODM_GeoRef(object):
|
|||
|
||||
|
||||
class ODM_Tree(object):
|
||||
def __init__(self, root_path, images_path, gcp_file = None):
|
||||
def __init__(self, root_path, gcp_file = None):
|
||||
# root path to the project
|
||||
self.root_path = io.absolute_path_file(root_path)
|
||||
if not images_path:
|
||||
self.input_images = io.join_paths(self.root_path, 'images')
|
||||
else:
|
||||
self.input_images = io.absolute_path_file(images_path)
|
||||
self.input_images = io.join_paths(self.root_path, 'images')
|
||||
|
||||
# modules paths
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ def load_images_database(database_file):
|
|||
class ODMLoadDatasetStage(types.ODM_Stage):
|
||||
def process(self, args, outputs):
|
||||
# Load tree
|
||||
tree = types.ODM_Tree(args.project_path, args.images, args.gcp)
|
||||
tree = types.ODM_Tree(args.project_path, args.gcp)
|
||||
outputs['tree'] = tree
|
||||
|
||||
if args.time and io.file_exists(tree.benchmarking):
|
||||
|
|
Ładowanie…
Reference in New Issue