Dear Alexey,
looking for a solution I found your suggestion to another user with similar problem. I tried to use the code you suggest but unfortunately I can not use it.
You suggested to use the following code:
camera = PhotoScan.Camera()
camera.open(cam_path)
camera.label = camera.path.rsplit("/",1)[1]
sensor = PhotoScan.Sensor()
sensor.width = camera.width
sensor.height = camera.height
sensor.user_calib.load(calib_path)
sensor.fixed = True
camera.sensor = sensor
chunk.sensors.add(sensor)
chunk.photos.add(camera)
I customized it in the following way but it dosen't work...
camera = PhotoScan.Camera()
camera.open(E:\OBJ\FracescaImg10000022.jpg)
camera.label = camera.path.rsplit("/",1)[1]
sensor = PhotoScan.Sensor()
sensor.width = 3456
sensor.height = 5184
sensor.user_calib.load(E:\OBJ\camera1.xml)
sensor.fixed = True
camera.sensor = sensor
chunk.sensors.add(sensor)
chunk.photos.add(camera)
can you please help me to understand?
thank you
davide
Hello Nan,
Yes, the place is right, but I recommend to create sensor instances manually in a loop across all cameras.
camera = PhotoScan.Camera()
camera.open(cam_path)
camera.label = camera.path.rsplit("/",1)[1]
sensor = PhotoScan.Sensor()
sensor.width = camera.width
sensor.height = camera.height
sensor.user_calib.load(calib_path)
sensor.fixed = True
camera.sensor = sensor
chunk.sensors.add(sensor)
chunk.photos.add(camera)
If there is only one calibration group, the script should be modified accordingly.