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

Function create_empty_db

hloc/reconstruction.py:15–23  ·  view source on GitHub ↗
(database_path: Path)

Source from the content-addressed store, hash-verified

13
14
15def create_empty_db(database_path: Path):
16 if database_path.exists():
17 logger.warning('The database already exists, deleting it.')
18 database_path.unlink()
19 logger.info('Creating an empty database...')
20 db = COLMAPDatabase.connect(database_path)
21 db.create_tables()
22 db.commit()
23 db.close()
24
25
26def import_images(image_dir: Path,

Callers 1

mainFunction · 0.85

Calls 1

connectMethod · 0.80

Tested by

no test coverage detected