VS2003 installing Opencv1.0 Windows system win7

Source: Internet
Author: User

A Steps
    1. Download Install opencv1.0 Install file I upload to Baidu network disk share connection Http://pan.baidu.com/s/1skddmC9
    2. Configure your computer Windows environment variables
    3. Configuring VS2003 Global Settings
    4. Configuring the VS2003 Development Project
Two Operation Steps

2.1 . Follow the above connection download install OPENVC I install the default path C Drive

2.2 . Configure your computer's Windows environment

The following steps are in the Win7 environment.

Right-click on the computer-Properties-Advanced system Settings-advanced-environment variables

Click New to write PATH in variable name, variable value position input C:\Program Files\opencv\bin

If you have a path variable, you can click Edit to add C:\Program Files\opencv\bin after the value of the variable (note the ";" with the preceding variable). ), click OK.

2.3. Configuring VS2003 Global Settings

Open the VS2003 already built project in the menu bar click Tools-Options-projects-vc++ Directory

Select- include files in the directory on the right to display content, and create new content separately

C:\Program Files\opencv\cxcore\include
C:\Program Files\opencv\cv\include
C:\Program Files\opencv\cvaux\include
C:\Program Files\opencv\ml\include
C:\Program Files\opencv\otherlibs\highgui
C:\Program Files\opencv\otherlibs\cvcam\include

In the right side of the directory to display the contents of select- source Files , create a new content

C:\Program FILES\OPENCV\CV\SRC
C:\Program FILES\OPENCV\CXCORE\SRC
C:\Program FILES\OPENCV\CVAUX\SRC
C:\Program Files\opencv\otherlibs\highgui
C:\ProgramFiles\OpenCV\otherlibs\cvcam\src\windows

Click OK to complete the setup

2.4. Configuring the VS2003 development Project

A) include the header file in the project

#include <cv.h>

#include <cxcore.h>

#include

b) in the menu bar, click-Project-Properties-connectors-Input-Additional dependencies

Add related dependencies

Cxcore.libcv.lib ml.lib cvaux.lib highgui.lib cvcam.lib

5. Complete the OpenCV settings and add the following code to the program to display a picture

iplimage* Lodsrc0 = Cvloadimage ("D:\\guang1. BMP ", 1);

Cvnamedwindow ("Show_image");

Cvshowimage ("Show_image", lodsrc[0]);

Cvwaitkey (0);

VS2003 installing Opencv1.0 Windows system win7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.