Skip to content

Commit

Permalink
Merge pull request OpenDroneMap#831 from pierotofy/rmtmptex
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Mather authored Jun 3, 2018
2 parents 59ef6f1 + 3ba4231 commit 62171cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/mvstex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ecto, os
import ecto, os, shutil

from opendm import log
from opendm import io
Expand Down Expand Up @@ -122,6 +122,12 @@ def process(self, inputs, outputs):
pmvs2nvmcams.run('{pmvs_folder}'.format(**kwargs),
'{nvm_file}'.format(**kwargs))

# Make sure tmp directory is empty
mvs_tmp_dir = os.path.join(r['out_dir'], 'tmp')
if io.dir_exists(mvs_tmp_dir):
log.ODM_INFO("Removing old tmp directory {}".format(mvs_tmp_dir))
shutil.rmtree(mvs_tmp_dir)

# run texturing binary
system.run('{bin} {nvm_file} {model} {out_dir} '
'-d {dataTerm} -o {outlierRemovalType} '
Expand Down

0 comments on commit 62171cf

Please sign in to comment.