Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:37:49+00:00 2026-06-05T01:37:49+00:00

How do you install and use OpenCV 2.4.3 under VC++ 2010 Express?

  • 0

How do you install and use OpenCV 2.4.3 under VC++ 2010 Express?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:37:51+00:00Added an answer on June 5, 2026 at 1:37 am

    1. Installing OpenCV 2.4.3

    First, get OpenCV 2.4.3 from sourceforge.net. Its a self-extracting so just double click to start the installation. Install it in a directory, say C:\.

    OpenCV self-extractor

    Wait until all files get extracted. It will create a new directory C:\opencv which
    contains OpenCV header files, libraries, code samples, etc.

    Now you need to add the directory C:\opencv\build\x86\vc10\bin to your system PATH. This directory contains OpenCV DLLs required for running your code.

    Open Control Panel → System → Advanced system settings → Advanced Tab → Environment variables…

    enter image description here

    On the System Variables section, select Path (1), Edit (2), and type C:\opencv\build\x86\vc10\bin; (3), then click Ok.

    On some computers, you may need to restart your computer for the system to recognize the environment path variables.

    This will completes the OpenCV 2.4.3 installation on your computer.


    2. Create a new project and set up Visual C++

    Open Visual C++ and select File → New → Project… → Visual C++ → Empty Project. Give a name for your project (e.g: cvtest) and set the project location (e.g: c:\projects).

    New project dialog

    Click Ok. Visual C++ will create an empty project.

    VC++ empty project

    Make sure that “Debug” is selected in the solution configuration combobox. Right-click cvtest and select Properties → VC++ Directories.

    Project property dialog

    Select Include Directories to add a new entry and type C:\opencv\build\include.

    Include directories dialog

    Click Ok to close the dialog.

    Back to the Property dialog, select Library Directories to add a new entry and type C:\opencv\build\x86\vc10\lib.

    Library directories dialog

    Click Ok to close the dialog.

    Back to the property dialog, select Linker → Input → Additional Dependencies to add new entries. On the popup dialog, type the files below:

    opencv_calib3d243d.lib
    opencv_contrib243d.lib
    opencv_core243d.lib
    opencv_features2d243d.lib
    opencv_flann243d.lib
    opencv_gpu243d.lib
    opencv_haartraining_engined.lib
    opencv_highgui243d.lib
    opencv_imgproc243d.lib
    opencv_legacy243d.lib
    opencv_ml243d.lib
    opencv_nonfree243d.lib
    opencv_objdetect243d.lib
    opencv_photo243d.lib
    opencv_stitching243d.lib
    opencv_ts243d.lib
    opencv_video243d.lib
    opencv_videostab243d.lib
    

    Note that the filenames end with “d” (for “debug”). Also note that if you have installed another version of OpenCV (say 2.4.9) these filenames will end with 249d instead of 243d (opencv_core249d.lib..etc).

    enter image description here

    Click Ok to close the dialog. Click Ok on the project properties dialog to save all settings.

    NOTE:

    These steps will configure Visual C++ for the “Debug” solution. For “Release” solution (optional), you need to
    repeat adding the OpenCV directories and in Additional
    Dependencies
    section, use:

    opencv_core243.lib
    opencv_imgproc243.lib
    ...

    instead of:

    opencv_core243d.lib
    opencv_imgproc243d.lib
    ...

    You’ve done setting up Visual C++, now is the time to write the real code. Right click your project and select Add → New Item… → Visual C++ → C++ File.

    Add new source file

    Name your file (e.g: loadimg.cpp) and click Ok. Type the code below in the editor:

    #include <opencv2/highgui/highgui.hpp>
    #include <iostream>
    
    using namespace cv;
    using namespace std;
    
    int main()
    {
        Mat im = imread("c:/full/path/to/lena.jpg");
        if (im.empty()) 
        {
            cout << "Cannot load image!" << endl;
            return -1;
        }
        imshow("Image", im);
        waitKey(0);
    }
    

    The code above will load c:\full\path\to\lena.jpg and display the image. You can
    use any image you like, just make sure the path to the image is correct.

    Type F5 to compile the code, and it will display the image in a nice window.

    First OpenCV program

    And that is your first OpenCV program!


    3. Where to go from here?

    Now that your OpenCV environment is ready, what’s next?

    1. Go to the samples dir → c:\opencv\samples\cpp.
    2. Read and compile some code.
    3. Write your own code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to install OpenCV on my Mac (OS X v10.6.3) for use
HI! I'm trying to install opencv and use it with python, but when I
I was able to install and use IBM DB2 Express-C 9.5.2. beta in Mac
I've strictly followed this documentation to install and use jsoncpp library in my project
I am trying to install PEAR for use with PHP. As i read on
is there some ruby code I can use to install a gem from a
I use blogger and I install a windows live writer, I don't know how
I want to use a single Doctrine install on our server and serve multiple
I have a new install of Ubuntu and trying to use the php's mail()
My goal is to use a script that will install an executable file on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.