Forum

Show Posts

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.


Topics - Saulzar

Pages: [1]
1
Camera Calibration / Camera rig import extrinsics
« on: January 09, 2020, 03:59:01 PM »
Hi!

I've been trying to import the extrinsics (intrinsics works fine) of a camera rig which we calibrate externally, using a python script. However, my attempt shown below does not seem to have any effect on the output.  Is there something I'm missing here? I've tried a few things, setting the location_accuracy etc... nothing seems to have much effect? Any tips on how to achieve this?

Thanks!
Oliver


        for camera, sensor in zip (calib['cameras'], chunk.sensors):
            sensor.fixed_calibration=True

            sensor_calib = import_calibration(camera)
            sensor.user_calib = sensor_calib

            sensor.fixed_rotation = False
            sensor.fixed_location = False

           if 'location' in camera and 'rotation' in camera:
             sensor.reference.location = camera['location']
             sensor.reference.location_enabled = True
         
            #sensor.reference.rotation = Metashape.utils.mat2ypr(Metashape.Matrix(camera['rotation']))
            #sensor.reference.rotation_enabled = True

Pages: [1]