strawlab / nextgen-camera-users

next generation camera software from the Straw Lab
1 stars 0 forks source link

Checkerboard Calibration Question #4

Closed gaelerobb closed 4 years ago

gaelerobb commented 4 years ago

I'm trying to get the checkerboard calibration working for 12 cameras. I have acquired calibration data and the camera intrinsic parameters through checkerboard calibration. However, I'm running into a problem when trying to generate a multiple camera calibration (this step: flydra_analysis_generate_recalibration --2d-data $DATAFILE --disable-kalman-objs $DATAFILE --undistort-intrinsics-yaml=$HOME/.config/strand-cam/camera_info --run-mcsc --use-nth-observation=4). Here is a screenshot of the error: Screenshot from 2020-10-07 16-11-26

Here is also a screenshot of the relevant camera's calibration results: Screenshot from 2020-10-07 16-20-30

I am just not entirely certain of what is going wrong. I'd appreciate your help I am using braid 0.4.0+f61aa9ef5989b924516a28a248b977a7020f0e37

astraw commented 4 years ago

Is it possible that this .yaml file was made with a version older than 0.4.0? The reason I ask is I added code that would have clamped this k3 coefficient to 0 when doing the checkerboard calibration. I went back and checked when that was, and the first release it appeared in would have been version 0.4.0. Also, looking at a checkerboard calibration .yaml file from the current release (0.7.4) that we just made yesterday, it also has this k3 coffecient as 0. (This is the last entry in the distortion_coefficients data.)

Tn the future, could you please cut and paste text rather than image screenshots? This way the search features will work much better.

florisvb commented 4 years ago

These were definitely made with braid 0.4, but is it possible that 0.4 was calling code that is not wrapped into braid?

astraw commented 4 years ago

Such a screw-up should not be possible. These releases get built by our continuous integration server which automatically builds things. Exactly such problems should be prevented by this.

Is it possible you are looking at an older file saved by an older version and the newer files are being saved elsewhere?

Otherwise, can you try again with 0.7.4 and see if that fixes things? Is there a problem you were hitting with 0.7.4? FWIW, I am trying to finish the 0.8.0 release and ironing out a few, hopefully the last few, bugs.

astraw commented 4 years ago

Based on https://github.com/strawlab/nextgen-camera-users/issues/5#issuecomment-706441054, I gather upgrading solved the problem. Please reopen the issue if not.

florisvb commented 4 years ago

Yes thanks!

On Mon, Oct 12, 2020 at 9:27 PM Andrew Straw notifications@github.com wrote:

Closed #4 https://github.com/strawlab/nextgen-camera-users/issues/4.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/strawlab/nextgen-camera-users/issues/4#event-3869215525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB4EPBZTU4KDR3XD7D4ISDSKPJMHANCNFSM4SIAZWCQ .

-- Floris van Breugel | http://www.florisvanbreugel.com Assistant Professor of Mechanical Engineering & Graduate Program for Neuroscience University of Nevada, Reno

Wildlife and Landscape Photography Galleries: http://www.ArtInNaturePhotography.com/ Blog: http://www.ArtInNaturePhotography.com/wordpress/