最近想把FPGA采集的圖像,上傳到上位機顯示,看到Opencv能幫大忙,所以就折騰折騰!
我用的是VS2012和opencv-2.4.10-2.4.10(目前的最新版本),那個版本無所謂,本文都將適用。
首先安裝opencv,安裝過程僅僅就單擊下exe即可;我安裝到目錄C:\opencv,安裝好了之後,看下目錄結構:、
選擇其中的一個目錄打開看看:
1、我當前機器是32位的所以選擇的是X86這個路徑,64位機器應選擇x64;
2、我用的VS2012,所以選擇的是VC11這個文件夾(裡面還有VC10,VC12,那麼對於的是其他VS版本)
opencv_calib3d2410.lib opencv_calib3d2410d.lib opencv_contrib2410.lib opencv_contrib2410d.lib opencv_core2410.lib opencv_core2410d.lib opencv_features2d2410.lib opencv_features2d2410d.lib opencv_flann2410.lib opencv_flann2410d.lib opencv_gpu2410.lib opencv_gpu2410d.lib opencv_highgui2410.lib opencv_highgui2410d.lib opencv_imgproc2410.lib opencv_imgproc2410d.lib opencv_legacy2410.lib opencv_legacy2410d.lib opencv_ml2410.lib opencv_ml2410d.lib opencv_nonfree2410.lib opencv_nonfree2410d.lib opencv_objdetect2410.lib opencv_objdetect2410d.lib opencv_ocl2410.lib opencv_ocl2410d.lib opencv_video2410d.lib opencv_videostab2410.lib opencv_videostab2410d.lib View Code
到目前為止,VS與Opencv就已經很好的關聯在一起了,程序的話,還是放到下次吧~~