Tutorial 1 - Settup OPENCV in Visual Studio for Windows ( Part1 )


Today I'm going to show you how to setup OPENCV in Visual Studio for windows 10 



I've divided this tutorial into 4 parts.

There are only part 1 , part 2 and part 3 are in this article. You can check the Part 4 in the next article.

Part 1 - Download & Install Visual Studio
  • You can download the Visual Studio from here.
  • Then click Visual "Studio Community"



  • When your download was finished open the setup file (vs_community_ENU.exe)

Part 2 - Dowload OPENCV
  • You can download the OPENCV for windows from here.
  • You may allowed to download any version of OPENCV as your wish. My preference was OPENCV 3.1. Click OPENCV for windows to download.


  • Then open your opencv-3.1.0.exe setup after download has finished.
  • You can set any location to extract opencv-3.1.0 in next window.


  • Then go to the location you gave. You can see there is a folder named opencv. Now rename it as your download version. In my case I rename it as opencv31 (this is not very important point).
  • Next step is to setup environment variable for opencv.

Part 3 - Setup Environment Variables for OPENCV


  • First right click on this pc(my computer) and go to properties. 
 

  • Next click Advanced system settings and select Environment variable.



  • Then select the path in your system variable and click Edit. 


  • Then go to your opencv directory and go ->opencv31\build\x6\vc14\bin (for Visual Studio 2015)
  • or go to your opencv directory and go ->opencv31\build\x64\vc12\bin (for Visual Studio 2013)
  • Then copy that path and paste in on variable value. Then click ok.







  • Now system variable setting up is finished. Next step is adding opencv library to Visual Studio and check whether opencv are successfully installed or not. 
  • So you can go to the next step simply click on here.

1 comment:

Social