配置
程序员文章站
2022-04-23 22:09:32
...
视图----其他---属性管理器
debug x64
属性
vc++目录
包含目录include /include opencv2/include opencv
库目录 build x64 vc14 lib
链接器 输入 附加依赖项opencv_world346d.lib
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
int main(void) {
Mat src = imread("C:/Users/Robin/Pictures/test.jpg");
if (src.empty()) {
std::cout << "could not load image..\n";
return 0;
}
namedWindow("test opencv setup.", CV_WINDOW_AUTOSIZE);
imshow("test opencv setup", src);
waitKey(0);
return 0;
}