in tools/colmap_processor.py [0:0]
def process(self, args):
os.makedirs(args.workspace_path, exist_ok=True)
self.extract_features(args)
self.match(args)
if args.initialize_pose:
self.triangulate(args)
else:
self.map(args)
models = os.listdir(self.sparse_dir(args.workspace_path))
num_models = len(models)
logging.info('#models = %d', num_models)
if num_models > 1:
logging.error(
"COLMAP reconstructs more than one model (#models=%d)",
num_models
)
if 'sparse' not in vars(args) or not args.sparse:
for sub_model in models:
self.dense(sub_model, args)