MCPcopy
hub / github.com/cvg/Hierarchical-Localization / detect_model_format

Function detect_model_format

hloc/utils/read_write_model.py:412–418  ·  view source on GitHub ↗
(path, ext)

Source from the content-addressed store, hash-verified

410
411
412def detect_model_format(path, ext):
413 if os.path.isfile(os.path.join(path, "cameras" + ext)) and \
414 os.path.isfile(os.path.join(path, "images" + ext)) and \
415 os.path.isfile(os.path.join(path, "points3D" + ext)):
416 return True
417
418 return False
419
420
421def read_model(path, ext=""):

Callers 1

read_modelFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected