首先GOOGLE搜尋OpenCV2.1版
再下載紅色框框內exe檔
必須下載改成下載第二行PUTH all
開啟專案並右鍵build options
並加入以下的鍊結
Search Diverctory內:
Linker內:
咒語:
最後成果出爐:
程式碼:
#include <opencv/highgui.h>
int main()
{
IplImage * img=cvLoadImage("C:\\Users\\Public\\Pictures\\Sample Pictures\\tulips.jpg");
cvNamedWindow("opencv");
cvShowImage("opencv", img);
cvWaitKey(0);
}







沒有留言:
張貼留言