Search code examples
c++xmlopencvyamlyaml-cpp

How to edit / update YAML file in OpenCV?


What is the best way to edit/update YAML/YML file in OpenCV ?


Solution

  • There is NO DIRECT support for update in YAML in general because it need to rewrite the whole file below the update node, so the reason in OpenCV as well as in yaml-cpp dont support direct edit of node value. So, the work around is re-create/write YAML structure again.