Author Topic: How to split calibration groups in python?  (Read 2912 times)


  • Newbie
  • *
  • Posts: 14
    • View Profile
How to split calibration groups in python?
« on: January 05, 2016, 03:25:30 AM »
In some instances I've noticed improved processing by splitting cameras into individual calibration groups (1 per camera) instead of the default grouping (based on a non-exact focal length). I've been looking through the documentation, and the only thing that stands out as being similar is cameraGroups, but it does not seem to be separating them. Is there a way to "split camera calibration"?

In the GUI, Tools>Camera Calibration>right click on a group and "Split Groups" is what I'm looking to do.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Re: How to split calibration groups in python?
« Reply #1 on: January 05, 2016, 09:00:06 PM »
Hello gchaprnka,

The following code shoud be working as split calibration does (works for already added images):

Code: [Select]
chunk =

for camera in chunk.cameras:
sensor = chunk.addSensor()
sensor.label = camera.label
sensor.type = camera.sensor.type
sensor.calibration = camera.sensor.calibration
sensor.width = camera.sensor.width
sensor.height = camera.sensor.height
sensor.focal_length = camera.sensor.focal_length
sensor.pixel_height = camera.sensor.pixel_height
sensor.pixel_width = camera.sensor.pixel_width
camera.sensor = sensor
Best regards,
Alexey Pasumansky,
Agisoft LLC