0% found this document useful (0 votes)
4 views4 pages

Installing OpenCV

This document provides a step-by-step guide for installing OpenCV version 2.4.9 on a Windows 64-bit system using Visual Studio 2010. It includes instructions for downloading OpenCV, setting environment variables, configuring project properties in Visual Studio, and adding necessary library dependencies. The final step is to apply the changes and restart the computer.

Uploaded by

AnhTuấn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Installing OpenCV

This document provides a step-by-step guide for installing OpenCV version 2.4.9 on a Windows 64-bit system using Visual Studio 2010. It includes instructions for downloading OpenCV, setting environment variables, configuring project properties in Visual Studio, and adding necessary library dependencies. The final step is to apply the changes and restart the computer.

Uploaded by

AnhTuấn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Installing OpenCV | Windows (64 bit system) | Visual Studio 2010

FIRST STEP:

Download OpenCV version 2.4.9 from http://www.opencv.org/releases.html. Click on 2.4.9 and


download the Win Pack. It will download an executable. Open that executable and extract to a folder
and name that folder “opencv-249”. There is no specific reason to do that but OpenCV releases newer
versions and you may need to download newer version for better stability.

SECOND STEP:

Now go to My Computer and go to properties by right clicking. Open Advanced system settings. Click
Environment Variables and search for path in System Variables.

By double clicking on it will open a new box. Click the browse button and add the “…\opencv-
239\opencv\build\x86\vc10\bin” folder. Then click browse button again and add “…\opencv-
239\opencv\build\x64\vc10\bin” folder. Click apply, ok, and exit.
THIRD STEP:

Open Visual Studio 2010 and make a new project for Win32 Console Application like you normally do for
a C++ console app. In the settings that will prompt, select empty project and hit finish.

FOURTH STEP:

Open project properties by right clicking on the highlighted text like shown in picture -

Project properties will open up. Change Configuration in dropbox from Active(debug) to All
Configurations like shown below:
FIFTH STEP:

Under the Configuration Properties, click on VC++ Directories. Hover over Include Directories, you will
see an arrow. Click that arrow and select “<Edit.. >”.

In the box, click on the folder icon and find this folder “…\opencv-239\opencv\build\include” and hit
ok.

When you return back to Project Properties, hover over Library Directories, then edit. A similar box will
open up like in the above picture. Click folder icon and add these two folders “…\opencv-
239\opencv\build\x86\vc10\bin”, “…\opencv-239\opencv\build\x86\vc10\lib”. Hit ok and and return
back to Project Properties.

Now under C/C++ option, click on General. Hover over the Additional Include Directories and do the
same thing like you did before. However add these three folders “…\opencv-
239\opencv\build\include\opencv2”, “…\opencv-239\opencv\build\include\opencv”, “…\opencv-
239\opencv\build\include”. Hit ok and return back to Project Properties.

Under Linker option, click on General. Hover over the Additional Library Directories, do the same thing
like previously. However add this folder “…\opencv-239\opencv\build\x86\vc10\lib”.

In the same menu you will find Use Library Dependency Inputs. Change that from No to Yes.
Under Linker option, click on Input. Hover over Additional Dependencies, click on arrow button and
copy paste the following:

 opencv_calib3d249d.lib
 opencv_contrib249d.lib
 opencv_core249d.lib
 opencv_features2d249d.lib
 opencv_flann249d.lib
 opencv_gpu249d.lib
 opencv_highgui249d.lib
 opencv_imgproc249d.lib
 opencv_legacy249d.lib
 opencv_ml249d.lib
 opencv_nonfree249d.lib
 opencv_objdetect249d.lib
 opencv_ocl249d.lib
 opencv_photo249d.lib
 opencv_stitching249d.lib
 opencv_superres249d.lib
 opencv_ts249d.lib
 opencv_video249d.lib
 opencv_videostab249d.lib

Hit ok and return back.

SIXTH STEP:

Hit Apply and ok. And Restart your computer!

You might also like