1
Python and Java API / Re: How to load calibration Camera parameter in batch file
« on: November 09, 2016, 06:55:26 PM »
Thank you very much Alexey!!!
It works!!!
Davide
It works!!!
Davide
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Hello Nan,
Yes, the place is right, but I recommend to create sensor instances manually in a loop across all cameras.Code: [Select]
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.