Visual Studio2015配置opencv

Visual Studio2015配置opencv
测试代码如下
#include
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

using namespace cv;

int main() {
// 读入一张图片(原画)
Mat img = imread(“D:/Image/zuoyetuxiang/dog.jpg”);
// 创建一个名为 "原画"窗口
namedWindow(“原画”);
// 在窗口中显示游戏原画
imshow(“原画”, img);
// 等待6000 ms后窗口自动关闭
waitKey(0);
}