Sorry, i unintentionally sent unfinished message.
Hi ,
I would like to create new chunk, then load photos and then set a fixed calibration for each of the loaded photos.
1. How to do that?
2. Can you please explain me what have after i do - doc.addChunk() -> chunk.addPhotos(file_paths) ? do i have one group of many cameras?
So i used:
# ------------ load the calibration
calib = PhotoScan.Calibration()
calib.load(Calib2Use,format="xml")
# ------------creat new chunk
doc = PhotoScan.app.document
chunk = doc.addChunk()
chunk.addPhotos(file_paths)# add photos to chunk
sensor = chunk.addSensor() #
sensor.fixed = True
sensor.calibration = calib
sensor.width = chunk.cameras[0].photo.image().width
sensor.height = chunk.cameras[0].photo.image().height
for cam in chunk.cameras:
cam.sensor = sensor
Now, i don't know how to update this calibration.
What else i need to do to set a fixed calibration for all the cameras?
Many Thanks,
Sorry for the 2 unfinished massages above,
Vadim