如何在OpenCV中编辑/更新YAML文件? [英] How to edit / update YAML file in OpenCV?

查看:465
本文介绍了如何在OpenCV中编辑/更新YAML文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OpenCV中编辑/更新YAML/YML文件的最佳方法是什么?

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

推荐答案

通常,YAML中不直接支持更新,因为它需要重写更新节点下的整个文件,因此在OpenCV中以及在yaml-cpp不支持直接编辑节点值.因此,解决方法是再次重新创建/写入YAML结构.

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.

这篇关于如何在OpenCV中编辑/更新YAML文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆