(self, *args, **kwargs)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected