YAML files are not officially supported.
dv-processing's Calibration classes support either XML files, generated by DV's calibration module, or JSON files.
You can see <camera/calibration_set.hpp> for the relevant code.
In theory, all that is needed to load .yml files is to change the extension that is checked in the "LoadFromFile()" function in the file above, line 59.
From a pure loading perspective, XML and YAML files in OpenCV can both be read and loaded.
But it is highly unlikely this will work, as our code then expects the various matrices and data points saved in that file to have specific names corresponding to what DV generates in its calibration module.
Your YAML file from some other source will almost certainly have a different internal naming scheme and so won't load properly.
If you have calibration files in different formats from other sources, your best best is to write a small conversion tool, loading your format and then writing out a dv-processing compatible JSON file, passing all the required calibration parameters:
--
Luca Longinotti (llongi)
Senior Software Engineer
iniVation AG - https://inivation.com/
A SynSense Group company