Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/
///////////////////////////. Net configuration ///////////////////////////////////// //
1. Install opencv
2. Tools. Options/projects/VC ++ directories include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
Tools. Options/projects/VC ++ directories/library files include
Lib
Otherlibs
Otherlibs/_ graphics/lib
Otherlibs/cvcam
Otherlibs/highgui
3. Project/** projects/linker/input: Additional dependency Input
Cv. Lib highgui. Lib cxcore. Lib
4. All functions must contain
Cv. H, high. H, cxcore. h
If the opencv function is not prompted after visual assist is installed, the following configuration is required:
1. vassistx-> visual assist x options
2. Projects-> C/C ++ Directories
3. Show directories-> stable include files
4. Include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
/// // The configuration in VC 6 ///////// //////////////////////////////
1. install Open CV
2. if you set environment variables during installation, add the preceding variables to "my computer", "properties", "advanced", and "environment variables", for example, variable: path, value: C: /opencv/bin;
3. * Open the _ make folder under the opencv installation directory and start opencv. DSW project (for example, C:/opencv/_ make/opencv. DSW); batch build (batch build), note that only Win32 debug and Win32 release can be selected.
The following error may occur during the generation process:
"Fatal error lnk1181: Unable to open the input file" cvauxd. lib"
"Error c2039:" foreground_regions ": Not a member of" cvfgdstatmodel"
Solution: Open the cvaux in the include/external file of the cvaux project in FileView. h file. Find the foreground_regions member and you will find that the member has been commented out. Change "/" at the end of the last line to "*/" to make the Member visible, start the project again and you can compile it.
4. * Another project "opencv_directshow.dsw" under the startup _ make directory is compiled through.
5. Tools. Options/projects/VC ++ directories/include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
6. Tools. Options/projects/VC ++ directories/library files include
Lib
Otherlibs
Otherlibs/_ graphics/lib
Otherlibs/cvcam
Otherlibs/highgui
7. when creating a project. in Project-settings-all deployments (Project-Option-set all), select link and add the static library CVD to the object/Library module. lib highguid. lib cvauxd. lib cxcored. lib cvcam. lib
8. Add to source file
# Include "cv. H"
# Include "highgui. H"
# Include "cxcore. H"
Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/