Step 1: Create a new project.

01-NewProject

Step 2: Select Win32 Console Application

02-ProjectKind

Step 3: We want an Empty project

03-ConsoleApp

 

Step 4: Done creating the project

04-WizardFinish

Step 5: Create a new item

06-NewItem

Step 6: Create a C++ file, the name is your choice.

07-PickCpp

Step 7: Modify the project properties

08-ProjectProperties

Step 7: Select All Configurations

09-AllConfigurations

Step 9: Go to Configuration Properties / C/C++ / General / Additional Include Directories

10-IncludeDirs

 

Step 10: Enter the path to your include files: For default OpenCV install location, they are

"C:\Program Files\OpenCV\cvaux\include\";"C:\Program Files\OpenCV\cxcore\include\";"C:\Program Files\OpenCV\cv\include\";"C:\Program Files\OpenCV\otherlibs\highgui\";"C:\Program Files\OpenCV\otherlibs\cvcam\include\"
11-IncludeDirsDone
Step 11: Go to Configuration Properties / Linker / Input / Additional Dependencies
12-LinkerIncludes

Enter the path to all the relevant cv libs. For a default install, this is:
"C:\Program Files\OpenCV\lib\cv.lib" "C:\Program Files\OpenCV\lib\cxcore.lib" "C:\Program Files\OpenCV\lib\cvaux.lib" "C:\Program Files\OpenCV\lib\highgui.lib"

(notice the spaces instead of ; marks) 13-LinkerIncludesDone Guess what, you're done !!! Just write some sample code and start debugging. Happy openCVing !!!