I am trying to import cameras using a python script.
The part of the code used in the script is this one:
path_cal="M:/D40" #path for the calibration files
chunk = PhotoScan.Chunk()
starting_frame = iframe
chunk.label = "Frame_" + "{0:04d}".format(iframe)
path_cam=path_cal+"/c01_c04.xml"
chunk.importCameras(path_cam, "xml")
When I run the script, and the processing arrives to these lines, in the log on the console I have:
Loading project...
can't load project
and the cameras calibrations and positions are not imported.
How it is possible to solve this problem?