Forum

Author Topic: how do you exporting and importing calibration using agisoft metashape  (Read 2905 times)

mpatalberta

  • Newbie
  • *
  • Posts: 24
    • View Profile
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,