MCPcopy Create free account
hub / github.com/XiaoBaiiiiii/colmap-pcd / detect_model_format

Function detect_model_format

scripts/python/read_write_model.py:409–416  ·  view source on GitHub ↗
(path, ext)

Source from the content-addressed store, hash-verified

407
408
409def detect_model_format(path, ext):
410 if os.path.isfile(os.path.join(path, "cameras" + ext)) and \
411 os.path.isfile(os.path.join(path, "images" + ext)) and \
412 os.path.isfile(os.path.join(path, "points3D" + ext)):
413 print("Detected model format: '" + ext + "'")
414 return True
415
416 return False
417
418
419def read_model(path, ext=""):

Callers 1

read_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected