#include
#include
#include
using namespace cv;
int main()
{
Mat img=imread("pp.jpg");
namedWindow("監控圖像");
imshow("監控圖像",img);
waitKey(6000);
}
一直顯示錯誤:
Dubug Error
R6010
_about()has been called
(Press Retry to debug the application)
你需要在#include裡面加上#include "opencv2/opencv.hpp"就可以了,反正我試了,這樣我就成功了。
#include "stdafx.h"
#include "opencv2/opencv.hpp"
using namespace cv;
int main()
{
Mat img=imread("3.bmp");
namedWindow("pic");
imshow("pic",img);
waitKey(6000);
}