标签:依赖 char pat mat open out argc int world
D:\opencv4.1\build\x64\vc15\bin
注:vs2015 选 vc14,vs2017 选 vc15
包含目录:D:\opencv4.1\build\include; D:\opencv4.1\build\include\opencv2
库目录:D:\opencv4.1\build\x64\vc15\lib
opencv_world410.lib opencv_world410d.lib
注:
注:运行前,选择 Debug,x64
#include <opencv2/opencv.hpp> #include <iostream> using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
Mat src = imread("path\to\image");
if (src.empty())
{
cout << "Could not load image..." << endl;
return -1;
}
nameWindow("Test", WINDOW_AUTOSIZE);
imshow("", src);
}
Spinnaker SDK 是灰点公司(PointGrey)提供的 SDK,是之前 FlyCapture SDK 的升级版。
https://flir.app.boxcn.net/v/SpinnakerSDK/folder/68522911814
D:\Spinnaker\lib64\vs2015
Spinnakerd_v140.lib
Spinnaker_v140.lib
注:Spinnakerd_v140.lib(Debug), Spinnaker_v140.lib(Release)
Visual Studio 2017 + OpenCV + Spinnaker SDK 配置
标签:依赖 char pat mat open out argc int world
原文地址:https://www.cnblogs.com/dinghongkai/p/11631147.html