Mark matching as done

pull/753/head
Pau Gargallo 2017-05-16 15:51:10 +02:00 zatwierdzone przez Dakota Benjamin
rodzic 3c20a25084
commit 6fde9aef67
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -36,6 +36,8 @@ class Reconstructor:
run_command([self.command, 'detect_features', submodel_path])
run_command([self.command, 'match_features', submodel_path])
self._set_matching_done(submodel_path)
run_command([self.command, 'create_tracks', submodel_path])
run_command([self.command, 'reconstruct', submodel_path])
@ -43,6 +45,12 @@ class Reconstructor:
logger.info("Submodel {} reconstructed".format(submodel_path))
logger.info("=======================================================")
def _set_matching_done(self, submodel_path):
"""Tell ODM's opensfm not to rerun matching."""
matching_done_file = os.path.join(submodel_path, 'matching_done.txt')
with open(matching_done_file, 'w') as fout:
fout.write("Matching done!\n")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Reconstruct all submodels')