Opencv 2.3.1 Installation Guide For Windows 7
Opencv 2.3.1 Installation Guide For Windows 7
1. Download Microsoft Visual Studio 2010 Ultimate (2.27 GB) from lan and install it. It will
take about 2 hrs.
2. Download the OpenCV-2.3.1-win-superpack.exe (124 MB) from lan or from the given link
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/ to any directory.
3. Once the package is downloaded (pre-build binary i.e. no need of cmake build) to any
directory e.g., D directory. Select the package and right click and choose “Run as
administrator”.
3. An Extract window will pop up as shown in the figure above. Enter ‘C:\’ and click the
“Extract” button . You can select whichever drive/directory you wish to. Here C:\ assumed
default directory.
4. A folder by name “opencv” will now be created in the C:\ directory.
5. Add “C:\opencv\build\x86\vc10\bin” by going to Computer (right
click)->properties->Advanced-System settings->Advanced->Environment
variable , System variables-> PATH and restart the system.
6. Open Visual Studio 2010 and select File->new project and Visual C++ and
Win32Console Application .
7. Enter the name of the project and click OK. In the application setting select Console
application and Empty project as shown in figure.
8. Click Finish , then select the project and add a .cpp file as shown in figure below E.g.
“test.cpp”.
9. Click Add and type the code as shown in figure to display a figure. In addition, you will
Extract the zip file and open ..”\tbb40_20111130oss\bin\ia32\vc10” and search for
“tbb_debug.dll”. Copy and paste it in “C:\opencv\build\x86\vc10\bin” then run the
program.