diff --git a/scripts/context.py b/scripts/context.py index ef9a5f8b..447fd3a1 100644 --- a/scripts/context.py +++ b/scripts/context.py @@ -12,6 +12,7 @@ ccd_widths_path = os.path.join(root_path, 'ccd_defs.json') pyopencv_path = os.path.join(superbuild_path, 'install/lib/python2.7/dist-packages') sys.path.append(pyopencv_path) +# add opensfm to python path opensfm_path = os.path.join(superbuild_path, "src/opensfm") # Define supported image extensions diff --git a/scripts/tasks.py b/scripts/tasks.py index eac9ae8d..fa55b085 100644 --- a/scripts/tasks.py +++ b/scripts/tasks.py @@ -6,6 +6,7 @@ import datatypes from resize import resize from dataset import load_dataset +from opensfm import opensfm # Define pipeline tasks tasks_dict = { '0': 'load_dataset', @@ -54,8 +55,8 @@ class ODMTaskManager(object): elif task_name == 'opensfm': # setup this task - command = None - inputs = {} + command = opensfm + inputs = { 'images_dir': _odm_app.images_dir } elif task_name == 'cmvs': # setup this task