简单的遍历xml

#include <opencv2\opencv.hpp>

#include <opencv2\highgui\highgui.hpp>

#include <opencv2\features2d\features2d.hpp>

#include <opencv2\core\core.hpp>

using namespace std;

using namespace cv;

int main()

{


	//========遍历节点(读数据)========= 

	FileStorage fsread("C:\\Users\\Administrator\\Desktop\\002339.xml", FileStorage::READ);

	Mat dst;

	fsread["src1"] >> dst;

	cout << dst << endl;

	fsread.release();

	cout << "Read Finished" << endl;

	getchar();

	return 0;

}

  

Aiden的技术屋 文章被收录于专栏

虽然还是个菜鸟,但是总有一天会长大,翱翔于天空,热爱技术

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务