OpenCVVersions: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
<!---#** vc10 should be replaced with vc11 or vc12 depending on the version of visual studio installed In this case: -->
<!---#** vc10 should be replaced with vc11 or vc12 depending on the version of visual studio installed In this case: -->
#* If it does not, press the New button and set the variable name to <code>Path</code> and the value to the path to your opencv directory
#* If it does not, press the New button and set the variable name to <code>Path</code> and the value to the path to your opencv directory
==== Project Set-Up ====
==== Visual Studio Project Set-Up ====
# Go to Project -> Properties
# Go to Project -> Properties
#* Configuration Properties -> C/C++ -> General
#* Configuration Properties -> C/C++ -> General

Revision as of 14:41, 11 June 2014

WIN32

These directions are for 64-bit systems First, we install opencv

  1. Download the desired version of OpenCV from here
  2. Double click the downloaded executable to install, and select run at the prompt
  3. Choose the installation location as C:\temp or in the home directory as shown below, where "username" is the actual username.
  4. Click extract, to install opencv files
    • Install location.png
      • Click to enlarge

Without CUDA

    The path to the folder you extracted is from here on refered to as {OPENCV}

Next, we setup environmental variables

  1. Navigate to Control Panel -> System and Security -> System
  2. Select Advanced system settings from the sidebar
  3. In the Advanced tab click the Environment Variables... button
  4. Check if a Variable called Path exists in the list of user variables (the top variables)
    • If it exists, click edit to edit the variable, and add a semicolon, then the following to the end of the Path value {OPENCV}\build\x64\vc10\bin
    • If it does not, press the New button and set the variable name to Path and the value to the path to your opencv directory

Visual Studio Project Set-Up

  1. Go to Project -> Properties
    • Configuration Properties -> C/C++ -> General
      • Additional Include Directories...add: '{OPENCV}\build\include;'
    • Configuration Properties -> VC++ Directories
      • Executable Directories...add: '{OPENCV}\build\x64\vc10\bin;'
      • Library Directories...add: '{OPENCV}\build\x64\vc10\lib;{OPENCV}\build\x64\vc10\staticlib;'