Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: PierreB on June 10, 2022, 11:12:04 PM

Title: GPS/INS offset parameters
Post by: PierreB on June 10, 2022, 11:12:04 PM
Hi. Once again, I'm looking to code in Python the parameters of a GUI window, this time the GPS/INS offset parameters of the Camera Calibration window. Does anyone have python code for this? Thank you.
Title: Re: GPS/INS offset parameters
Post by: Alexey Pasumansky on June 14, 2022, 07:31:26 PM
Hello Pierre,

Reference values for the corresponding calibration group (sensor) can be accessed via:
Code: [Select]
sensor = chunk.sensors[1]
xyz_ref = sensor.antenna.location_ref #3-component vector
ypr_ref = sensor.antenna.rotation_ref #3-component vector
If you need to access the estimated values, use sensor.antenna.location and  sensor.antenna.rotation.