(path, ext)
| 475 | |
| 476 | |
| 477 | def 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 | |
| 489 | def read_model(path, ext=""): |