VS2010+OpenCV2.4.6安裝與配置及常遇問題
阿新 • • 發佈:2019-02-01
#include "stdafx.h" #include <opencv.hpp> #include <iostream> #include <string> using namespace cv; using namespace std; int _tmain(int argc, _TCHAR* argv[]) { Mat img = imread("OpenCVTest.bmp"); if(img.empty()) { cout<<"error"; return -1; } imshow("測試圖片",img); waitKey(); return 0; }