params = [np.array((699.316, 665.998, 378.275, -0.171522, 0.0244116)),
np.array((700.742, 628.812, 362.365, -0.173764, 0.0265925))]
db = sqlite3.connect(dbPath)
for i in range(len(params)):
sqlCommand = "UPDATE cameras SET params=(?), prior_focal_length=1 WHERE camera_id=%d" % (i+1)
db.execute(sqlCommand, (np.getbuffer(params[i]),))
db.commit() # save data back to file
db.close()
Now I'm wondering how to use the rig bundle adjuster / how to make a .json file containing the rig setup. Is there any documentation / tutorial / explanation for that? All I found was a github issue where someone figured it out by himself. :)