This tutorial assumes that you have already installed Microsoft Visual Studio 2010 and downloaded the library OpenCV 3.2.1( here...)
These step are supposed to be done for every new project in Visual Studio 2010 (Not like Microsoft Visual Express, it is supposed to be configurated just one time)
- Create your new project.
- Go to Project>Properties>Configuration Properties>VC++ Directories>Include Directories (<Edit...>) then add the path of include files: D:\opencv2.3.1\build\include
- Go to Project>Properties>Configuration Properties>Linker> General > Additional Library Directories (<Edit...>) and add Library path: D:\opencv2.3.1\build\x86\vc10\lib
- Go to Project>Properties>Configuration Properties>Linker > Input > Additional Dependencies and add all library you are going to use in your project (Here I will mention the main used Lib)opencv_core231d.libopencv_imgproc231d.libopencv_highgui231d.libopencv_ml231d.libopencv_features2d231d.libopencv_calib3d231d.lib
- Don't forget to add the path of the bin file (D:\opencv2.3.1\build\x86\vc10\bin) in the Environment Variables dialogue (the System Variables box select Path and then Edit).