(self, model, width, height, params, camera_id)
| 121 | self.create_name_index = lambda: self.executescript(CREATE_NAME_INDEX) |
| 122 | |
| 123 | def update_camera(self, model, width, height, params, camera_id): |
| 124 | params = np.asarray(params, np.float64) |
| 125 | cursor = self.execute( |
| 126 | "UPDATE cameras SET model=?, width=?, height=?, params=?, prior_focal_length=1 WHERE camera_id=?", |
| 127 | (model, width, height, array_to_blob(params),camera_id)) |
| 128 | return cursor.lastrowid |
| 129 | |
| 130 | def camTodatabase(txtfile, database_path): |
| 131 | import os |
no test coverage detected