Forum

Author Topic: import agisoft calibration from a exported agisoft calubration  (Read 1288 times)

mpatalberta

  • Newbie
  • *
  • Posts: 24
    • View Profile
import agisoft calibration from a exported agisoft calubration
« on: February 13, 2019, 02:42:15 AM »

I found the code that look like it exports the calibration  (is it correct )

import PhotoScan, so

doc = PhotoScan.app.document
export_dir  = PhotoScan.app.getExistingDirectory("Specify the export folder:")

for chunk in doc.chunks:
   for sensor in chunk.sensors:
      filename = "calib_chunk{0:03d}_sensor{0:02d}.txt".format(doc.chunks.index(chunk),chunk.sensors.index(sensor))
      if sensor.calibration:
         sensor.calibration.save(os.path.join(export_dir, filename), format = "australis")
print("Script finished")


How do I re import the calibration to get the same result?

Pat,