diff --git a/opendm/types.py b/opendm/types.py index e5f3d4c5..418d128c 100644 --- a/opendm/types.py +++ b/opendm/types.py @@ -17,7 +17,6 @@ class ODM_Photo: def __init__(self, path_file, force_focal, force_ccd): # general purpose - self.path_file = path_file self.filename = io.extract_file_from_path_file(path_file) # useful attibutes self.width = None @@ -33,7 +32,7 @@ class ODM_Photo: self.longitude = None self.altitude = None # parse values from metadata - self.parse_exif_values(self.path_file, force_focal, force_ccd) + self.parse_exif_values(path_file, force_focal, force_ccd) # compute focal length into pixels self.update_focal() diff --git a/scripts/run_opensfm.py b/scripts/run_opensfm.py index 346b5987..9746eb3b 100644 --- a/scripts/run_opensfm.py +++ b/scripts/run_opensfm.py @@ -66,7 +66,7 @@ class ODMOpenSfMCell(ecto.Cell): for photo in photos: if not photo.altitude: has_alt = False - fout.write('%s\n' % photo.path_file) + fout.write('%s\n' % io.join_paths(tree.dataset_raw, photo.filename)) # create config file for OpenSfM config = [