(path, ext)
| 407 | |
| 408 | |
| 409 | def 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 | |
| 419 | def read_model(path, ext=""): |