Installing OpenCV 2.3 in Windows 7, 64 bit edition

I may be reinventing the wheel here but I never found a reliable web source that clearly explains OpenCV 2.3 installation for Windows 64bit except for information posted on mailing lists.

The current version of OpenCV is easier to install compared to the previous versions.

The *.exe file for extracting the source files and pre-build files can be downloaded from here. After downloading the file, you may use the following window to extract the files to a directory of your choice:

Extract window

After extracting the files, open the “read me”  file inside the opencv directory.

Refer to the notes section where it asks to set the environment variables before you start.

Go to Computer and select “System Properties”—> Advanced System Settings —> Environment Variables.

 

Select Path and edit your environment variables:

Add the environment variables as follows to the existing configuration:

<OpenCV_DIR>\build\bin;<OpenCV_DIR>\build\x64\vc10\bin;

Save the environment variables and proceed to generating the solution files for building the opencv libraries. A CMake compiler is necessary for generating the solution files. The Cmake compiler may be downloaded from here.

Provide the location of the OpenCV source code and the directory location for building the solution:

Click on Configure and Choose your platform as Visual Studio 10

Your window should appear something like this:

Choose Build_Examples and Install C_Examples and click on configure again. Click on Generate.

Now go to the directory where you chose to build your solution files and open OpenCV.sln using visual studio. Wait for the file to parse and select Build  –> Build Solution:

Your build should have succeeded. Building the first OpenCV tutorial is as same as the earlier versions but ensure that you include the following directories as mentioned in the read me file.

There are several tutorials to write your first OpenCV based program. It would be just redundant to write one again.

The two documents that I always prefer are those written by Nashruddin and Utkarsh Sinha.

In the days to come, I will post about a machine learning technique using OpenCV!

 

 

 

Advertisements

8 Responses to Installing OpenCV 2.3 in Windows 7, 64 bit edition

  1. Mark says:

    In openCV 2.3.1 windows superpack no longer has a build/bin directory and the README file just points you to http://opencv.willowgarage.com which proves to be fairly useless at being helpful to those just starting out with openCV.

  2. Rahul says:

    Don’t copy from the original source. Use the link given in this article for downloading the source. It works!

  3. Pearl says:

    I am having a problem with configuring the build program as Visual Studio 10. I receive an error: CMake was unable to find a build program corresponding to “Visual Studio 10”- CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

    I get the same error, if I choose Visual Studio 8 2005. Can you please give me a hint?

  4. grizzleybear123 says:

    I beg you guys to see this….There are even more horrible problems…. http://answers.opencv.org/question/3996/cannot-do-anything-with-opencv-anymore-on-windows/

  5. more tips says:

    Thank you for some other informative website. The place else may just I get that
    type of info written in such an ideal method?
    I’ve a venture that I am simply now running on, and I have been at the glance out for such info.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: