Forum

Author Topic: calibration load (solved)  (Read 2044 times)

hagorms

  • Newbie
  • *
  • Posts: 12
    • View Profile
calibration load (solved)
« on: July 05, 2017, 02:13:31 PM »
Hello.
I think I don't understand something with load for calibration.
According to python api:

class PhotoScan.Calibration has method
load(path, format=’xml’)
Loads calibration from file.
Parameters
• path (string) – path to calibration file
• format (string) – Calibration format in [’xml’, ‘australis’, ‘photomodeler’, ‘calibcam’,
‘calcam’, ‘inpho’, ‘usgs’].
Returns success of operation
Return type boolean
page 11

my code :
   calibration_4cameras = PhotoScan.Calibration
   calibration_4cameras.load("C:\\Users\\OSLab\\Desktop\\autoprocess\\agisoft_calib.xml", format = "xml")
gives me an error
TypeError: descriptor 'load' requires a 'PhotoScan.Calibration' object but received a 'str'
What do I do wrongly ?
« Last Edit: July 05, 2017, 03:28:23 PM by hagorms »

hagorms

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: calibration load
« Reply #1 on: July 05, 2017, 03:28:02 PM »
Solved. Instead of loading calibration for each sensor, I used "import cameras for chunk"
Thank you for good documentation.
I just looked in the wrong place