MCPcopy Create free account
hub / github.com/TheMariday/marimapper / __init__

Method __init__

marimapper/pycolmap_tools/database.py:150–172  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

148 return sqlite3.connect(database_path, factory=COLMAPDatabase)
149
150 def __init__(self, *args, **kwargs):
151 super(COLMAPDatabase, self).__init__(*args, **kwargs)
152
153 self.create_tables = lambda: self.executescript(CREATE_ALL)
154 self.create_cameras_table = lambda: self.executescript(
155 CREATE_CAMERAS_TABLE
156 )
157 self.create_descriptors_table = lambda: self.executescript(
158 CREATE_DESCRIPTORS_TABLE
159 )
160 self.create_images_table = lambda: self.executescript(
161 CREATE_IMAGES_TABLE
162 )
163 self.create_two_view_geometries_table = lambda: self.executescript(
164 CREATE_TWO_VIEW_GEOMETRIES_TABLE
165 )
166 self.create_keypoints_table = lambda: self.executescript(
167 CREATE_KEYPOINTS_TABLE
168 )
169 self.create_matches_table = lambda: self.executescript(
170 CREATE_MATCHES_TABLE
171 )
172 self.create_name_index = lambda: self.executescript(CREATE_NAME_INDEX)
173
174 def add_camera(
175 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected