Thursday, March 16, 2017

How to Setup the Environments with OpenCV 3 and C++ Using Windows 10 + Visual Studio 2015 (Enterprise Edition) + precompiled binaries

Note: Bold indicates something that will change depending on your version of OpenCV and/or Visual Studio

  1. Though I am using Visual Studio 2015 Enterprise edition you need license for use that version. So if you did not have license Visual Studio Product you can use Visual Studio Community edition. Download and install Visual Studio 2015 Community Edition latest version using Here (yes, it’s free, and choosing all default options will work fine)
  2. Download the latest version of OpenCV Here, for example OpenCV 3.1.0 use by me on future development examples.
  3. Make a folder “C:\OpenCV-X.X.X” for your version of OpenCV, ex. “C:\OpenCV-3.1.0“. ) Double-click on the completed OpenCV download executable, then set “Extract to:” to your “C:\OpenCVX.X.X” directory.
  4. Add the bin directory for your version of OpenCV and Visual Studio to the operating system PATH.
  5. Note: In the OpenCV directories: For example if you are using OpenCV 3.1.0 and Visual Studio 2015 add the following to your PATH:
  6. C:\OpenCV-3.1.0\opencv\build\x64\vc14\bin
  7. Pull up a Command Prompt and verify the bin directory is now in PATH, then reboot.

That is basic for setup the environment and you will be able to learn Create project and make configurations on it, basic image processing techniques example using OpenCV on future post.