kopia lustrzana https://github.com/OpenDroneMap/ODM
removed file_path field from ODMPhoto, refactoring to use relative paths in run_opensfm
rodzic
3803891250
commit
89a63879aa
|
@ -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()
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Ładowanie…
Reference in New Issue