1. First Install Microsoft visual studio (Any Version)
2. 2nd download OpenCV version from sourceforge [ Ссылка ]
3. Install OpenCV in localdisc C.
4. set enviroment variables
5. Restart PC.
6. Start visual studio
7. Add dependencies
Environment Variable : C:\opencv\build\x86\vc12\bin
Include Directories : C:\opencv\build\include;
Library Directories: C:\opencv\build\x86\vc12\lib;
Linker Input: (debug) for opencv 2.4.11
opencv_calib3d2411d.lib
opencv_contrib2411d.lib
opencv_core2411d.lib
opencv_features2d2411d.lib
opencv_flann2411d.lib
opencv_gpu2411d.lib
opencv_highgui2411d.lib
opencv_imgproc2411d.lib
opencv_legacy2411d.lib
opencv_ml2411d.lib
opencv_nonfree2411d.lib
opencv_objdetect2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_videostab2411d.lib
Ещё видео!