64,649
社区成员
发帖
与我相关
我的任务
分享
// demo.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <opencv2/opencv.hpp>
#include <iostream>
#include "fstream"
#include <string>
using namespace cv;
using namespace std;
int main(int argc, char * const argv[])
{
Mat var1;
//Mat var2;
string demoFile = "data.yml";
FileStorage fsDemo(demoFile, FileStorage::READ);
fsDemo["pose"] >> var1;
//fsDemo["Variable2"] >> var2;
cout << "Print the contents of var1:" << endl;
cout << var1 << endl << endl;
/*cout << "Print the contents of var2:" << endl;
cout << var2 << endl;*/
fsDemo.release();
return 0;
}