User Tools

Site Tools


opencv_tutorials_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
opencv_tutorials_installation [2016/07/13 14:14] joaomatosopencv_tutorials_installation [2016/09/05 14:38] (current) jadintredup
Line 1: Line 1:
 +===== Installing OpenCV 3.1.0 with Visual Studio 2015 =====
  
 +=== Part 1: Download the necessary Files ===
  
-===== Installing OpenCV 2.4.13 with Visual Studio 2015 =====+  * Visual Studio 2015 can be downloaded for free at [[https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx | Visual Studio 2015]].
  
-1) Download the necessary files:+  * OpenCV 3.1.0 is the latest release of OpenCV and most currently supported for Visual Studio 2015. It can be cloned from its git repository at [[https://github.com/opencv/opencv | OpenCV]]. We will clone the repository into a new directory C:\OpenCV
  
-. Visual Studio 2015 : Is free , just go to the [[https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx|Microsoft Website]] and download it. +  * Cmake is required to build the libraries from the source code provided by the git repository. Cmake can be downloaded from [[https://cmake.org/download/CMake]]. Be sure to download the correct version for your system.
- +
-.OpenCV 2.4.13  : You can find it [[http://opencv.org/downloads.html|Here]]. Select the version 2.4.13 compatible with your Operational System. We will use this old version because it is easier to use some features (like Surf detector) into this version (it is all contained into the OpenCV 2.4.13 directory ). +
- +
-.Cmake: Can be downloaded [[https://cmake.org/download/|Here.]]. Select the version compatible with your Operational System.+
  
  
 ---- ----
  
 +==== Part 2: Building the Binaries Using CMake ====
  
-2) Building the binaries  using CMAKE.+  - Open your OpenCV directory and create a new directory called "mybuild" so that the path is C:\OpenCV\mybuild 
 +  - Start CMake and 
  
 2.1) Install the OpenCV 2.4.13 that you downloaded into your PC. Choose an easy to find directory , like C:>OpenCV . When the installation is done , you will see two folders inside the OpenCV folder ( Build and Source ).  2.1) Install the OpenCV 2.4.13 that you downloaded into your PC. Choose an easy to find directory , like C:>OpenCV . When the installation is done , you will see two folders inside the OpenCV folder ( Build and Source ). 
Line 65: Line 65:
 </Code> </Code>
  
-2.16) Close the Visual Studio. +2.16) Repeat 2.12) 2.132.14) using Release configurationIn the step 2.15) you must paste the libraries names without the "d" on the final for example opencv_calib3d310.lib instead of opencv_calib3d310d.lib.
- +
-2.17Go to your files explorer , right click into your PC icon > propertiesSelect advanced system settings > environment variablesInto the system variables box , find the Path variable click to edit itClick in new and then select your directory : OpenCV-Build > install > x64 (orx86) > vc14 > bin.+
  
-2.18Restart your PC.+2.17Close the Visual Studio.
  
-2.19Open Visual Studio again and open the project that you created following the previous steps. If you did everything OK you are good to go.+2.18Go to your files explorer right click into your PC icon > properties. Select advanced system settings > environment variables. Into the system variables box , find the Path variable , click to edit it. Click in new and then select your directory : OpenCV-Build > install > x64 (orx86) > vc14 > bin.
  
 +2.19) Restart your PC.
  
 +2.20) Open Visual Studio again , and open the project that you created following the previous steps. If you did everything OK you are good to go.
  
-2.20) Copy and paste any example on the Tutorials section and see if it is running OK.+2.21) Copy and paste any example on the Tutorials section and see if it is running OK.
  
opencv_tutorials_installation.txt · Last modified: 2016/09/05 14:38 by jadintredup