1 - Proper installation of OpenCV V2.4.9
2- Make a new project in Visual Sudio including OpenCV path in your solution.
3- Add the attached files and build the project.
Note: make sure you have a web cam in your PC or Laptop.
On Linux you will need to have opencv-devel installed and then run make.
Thank You,
Ahmad Kaifi,
Hassan Althobaiti,
Zubir Rentiya