简单的遍历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;

}

  

posted @ 2019-12-20 13:37  Aiden_Shao  阅读(447)  评论(0编辑  收藏  举报