kopia lustrzana https://github.com/OpenDroneMap/ODM
Updated opensfm code
rodzic
05d0706da1
commit
45f5d958fb
|
@ -151,9 +151,12 @@ class OSFMContext:
|
||||||
log.ODM_INFO("Aligning submodels...")
|
log.ODM_INFO("Aligning submodels...")
|
||||||
meta_data = metadataset.MetaDataSet(self.opensfm_project_path)
|
meta_data = metadataset.MetaDataSet(self.opensfm_project_path)
|
||||||
reconstruction_shots = tools.load_reconstruction_shots(meta_data)
|
reconstruction_shots = tools.load_reconstruction_shots(meta_data)
|
||||||
transformations = tools.align_reconstructions(reconstruction_shots, use_points_constraints=False)
|
transformations = tools.align_reconstructions(reconstruction_shots,
|
||||||
|
tools.partial_reconstruction_name,
|
||||||
|
True)
|
||||||
tools.apply_transformations(transformations)
|
tools.apply_transformations(transformations)
|
||||||
|
|
||||||
|
|
||||||
with open(alignment_file, 'w') as fout:
|
with open(alignment_file, 'w') as fout:
|
||||||
fout.write("Alignment done!\n")
|
fout.write("Alignment done!\n")
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -72,7 +72,6 @@ class ODMOpenSfMStage(types.ODM_Stage):
|
||||||
|
|
||||||
elif args.use_opensfm_dense:
|
elif args.use_opensfm_dense:
|
||||||
if not io.file_exists(output_file) or self.rerun():
|
if not io.file_exists(output_file) or self.rerun():
|
||||||
#octx.run('undistort') # TODO can we use PNGs here?
|
|
||||||
octx.run('compute_depthmaps')
|
octx.run('compute_depthmaps')
|
||||||
else:
|
else:
|
||||||
log.ODM_WARNING("Found a valid dense reconstruction in %s" % output_file)
|
log.ODM_WARNING("Found a valid dense reconstruction in %s" % output_file)
|
||||||
|
|
Ładowanie…
Reference in New Issue