Quick question regarding offsets...
I am able to get the Camera Calibration (xml) to load and verify the setting(s) in the Camera Calibration pane in the GUI. I am also able to access the Cameras Location and Rotational Accuracy and verify the setting(s) in the Reference Settings pane in the GUI. Perfect!
The issue I have is how to access the GPS/INS Offset settings in the Camera Calibration pane (tab), screenshot attached. I have included the sample I am using to access the above (cal and ref) settings; however, if I try to assign the Camera.Sensor.Antenna attribute the same as the Calibration setings it returns, not writeable… I did notice the antenna class has been moved around a bit through versions, likely I am using it wrong ..
How do I access these settings via python, specifically location (x,y,z)(m) and rotational (y,p,r)(deg)?
# set the rotation/location accuracy
for self.chunk in self.doc.chunks:
self.chunk.camera_location_accuracy = PhotoScan.Vector(
[self.offset.location, self.offset.location, self.offset.location])
self.chunk.camera_rotation_accuracy = PhotoScan.Vector(
[self.offset.rotation, self.offset.rotation, self.offset.rotation])
# load the camera calibration
for camera in self.doc.chunk.cameras:
path = home + "\Queue\\" + directoy + "\\" + "calibration.xml"
antenna = PhotoScan.Antenna
antenna.fixed = False
s = self.doc.chunk.addSensor()
s.label = camera.label
s.user_calib = PhotoScan.Calibration()
c = PhotoScan.Calibration()
c.load(path)
s.user_calib = c
#s.antenna = antenna
s.fixed = True
s.width = camera.photo.image().width
s.height = camera.photo.image().height
camera.sensor = s
Thanks in Advance!