MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / update_camera

Method update_camera

scripts/n3v2blender.py:123–128  ·  view source on GitHub ↗
(self, model, width, height, params, camera_id)

Source from the content-addressed store, hash-verified

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
130def camTodatabase(txtfile, database_path):
131 import os

Callers 1

camTodatabaseFunction · 0.80

Calls 1

array_to_blobFunction · 0.85

Tested by

no test coverage detected