I build this project on the Windows 7 system using the Microsoft Visual Studio 2010 compiler.
To compile the project smoothly,first you should configure the OpenCV and import the related libraries.Maybe you can refer to this page:Configure OpenCV in Microsoft Visual Studio 2010
---Start screenshots