Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: njwitthoeft on November 08, 2021, 09:50:06 PM
-
Hello,
I am working in the python API, and I have typically been able to assign values to parameters of sensors. I am unable to set the user_calib.f parameter in the python API. Is there a workaround or alternative method for setting an initial estimate? I've attached the console output.
>>> chunk.sensors[0].user_calib.f
2021-11-08 12:46:18 3483.8709660000004
>>> chunk.sensors[0].user_calib.f = 10
>>> chunk.sensors[0].user_calib.f
2021-11-08 12:46:22 3483.8709660000004
-
My temporary solution is simple enough, copy the calibration object and modify, then assign user_calib to the new calibration object.
calib = sensor.user_calib.copy()
calib.f = 1000
sensor.user_calib = calib