cannot convert to or from flydra xml

22 views
Skip to first unread message

Nicolas Nagloo

unread,
Jan 27, 2023, 7:36:55 AM1/27/23
to multi-camera software from the Straw Lab
Hi All,

I have an error when trying to use a newly created unaligned calibration file (.xml) with braid to do some tracking, so i can align my calibration to the arena i am using.

Generating the xml file like so, after a successful run of multicamselfcal:
flydra_analysis_calibration_to_xml file1.braidz.h5.recal/result > new-calibration-name.xml
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1205: UserWarning: No minimum eccentricity specified, using default
  warnings.warn("No minimum eccentricity specified, using default")
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1245: UserWarning: no non-linear data (e.g. radial distortion) in calibration for Basler_40044501
  "in calibration for %s" % cam_id
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1245: UserWarning: no non-linear data (e.g. radial distortion) in calibration for Basler_40044504
  "in calibration for %s" % cam_id
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1245: UserWarning: no non-linear data (e.g. radial distortion) in calibration for Basler_40044507
  "in calibration for %s" % cam_id
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1245: UserWarning: no non-linear data (e.g. radial distortion) in calibration for Basler_40044718
  "in calibration for %s" % cam_id
/home/flycubem1604/.local/lib/python2.7/site-packages/flydra_core/reconstruct.py:1245: UserWarning: no non-linear data (e.g. radial distortion) in calibration for Basler_40044719
  "in calibration for %s" % cam_id

However, when i try to use the generated xml file in braid, i get the following error:

Jan 27 12:46:57.567  INFO flydra2_mainbrain: using calibration: /home/flycubem1604/DATA/calibration_runs/20230126/evening/new-calibration-name.xml    
Error: cannot convert to or from flydra xml

Has anyone encountered this before? I am confused since older generated xml files work with braid but not the newly generated files. I have attached an old xml which works fine (cal2.xml) and a new xml (new-calbration-name.xml) which creates the error for troubleshooting.

Many thanks,

Nick
cal2.xml
new-calibration-name.xml

Nicolas Nagloo

unread,
Jan 27, 2023, 10:46:59 AM1/27/23
to multi-camera software from the Straw Lab
Hi All,

I have fixed the problem i was having! This error was caused by having floating point numbers instead of integers (e.g. 3.0 instead of 3) in the row and column fields of the yaml files used to transfer the intrinsic and extrinsic camera parameters to the recalibration function! I introduced these errors as i was using a custom written software to do the individual camera checkerboard calibrations.

I have now been able to fully align my calibration to the arena.

Cheers,

Nick
Reply all
Reply to author
Forward
0 new messages