MCPcopy Create free account
hub / github.com/ai4ce/RAP / detect_model_format

Function detect_model_format

utils/read_write_model.py:477–486  ·  view source on GitHub ↗
(path, ext)

Source from the content-addressed store, hash-verified

475
476
477def detect_model_format(path, ext):
478 if (
479 os.path.isfile(os.path.join(path, "cameras" + ext))
480 and os.path.isfile(os.path.join(path, "images" + ext))
481 and os.path.isfile(os.path.join(path, "points3D" + ext))
482 ):
483 print("Detected model format: '" + ext + "'")
484 return True
485
486 return False
487
488
489def read_model(path, ext=""):

Callers 1

read_modelFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected