Loading files
import logging
import time
from opensfm import dataset
from opensfm import io
from opensfm import reconstruction
logger = logging.getLogger(__name__)
class Command:
name = 'reconstruct'
help = "Compute the reconstruction"
def add_arguments(self, parser):
parser.add_argument('dataset', help='dataset to process')
def run(self, args):
start = time.time()
data = dataset.DataSet(args.dataset)
graph = data.load_tracks_graph()
report, reconstructions = reconstruction.\
incremental_reconstruction(data, graph)
end = time.time()
with open(data.profile_log(), 'a') as fout:
fout.write('reconstruct: {0}\n'.format(end - start))
data.save_reconstruction(reconstructions)
data.save_report(io.json_dumps(report), 'reconstruction.json')
7569f9fb1This file is pinned to the selected release. Download the original to open it in your design tool.