(path, ext)
| 410 | |
| 411 | |
| 412 | def 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 | |
| 421 | def read_model(path, ext=""): |