A Steps
- Download Install opencv1.0 Install file I upload to Baidu network disk share connection Http://pan.baidu.com/s/1skddmC9
- Configure your computer Windows environment variables
- Configuring VS2003 Global Settings
- 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