一.下載OpenCV2.1 vs2008.exe
https://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.1/
下載第二個


安裝C://OpenCV2.1,要勾PATH

二、解壓縮myEarth

解壓縮freeglut

freeglut的bin資料夾裡的freeglut.dll複製到外面

下載地球圖片
放入image.jpg

執行myEarth.exe

三、
開Console application專案
檔案右鍵選擇Build options

選擇Search drectiones→ Compiler→ Add→ 選擇OpenCV2.1裡include資料夾路徑→ OK


增加freeglut裡include資料夾路徑

Search drectiones→Linkerr→ Add→ 選擇OpenCV2.1裡lib資料夾路徑→ OK


增加freeglut裡lib資料夾路徑

Linker settings→ Linker libraries→ Add

新增cv210

新增cxcore210

新增highgui210

圖檔需複製一份到freeglut裡bin資料夾內

執行
沒有留言:
張貼留言