What is opencv? Actually opencv is a library which uses many graphical proccessing projects. Day by day GPU units and graphical proccesing importance is increasing. As we know, g.p.units much faster than central process units (CPU).So, Opencv supports gpu programming. for example nvidia cuda technology.
(you can get more information about Cuda&OpenCV:http://opencv.org/platforms/cuda.html)
After a long time, i'm here and writing a new article about computer programming. To this post i want to share simple face detection code.(i copied some lines from the github) . First of all you have to be sure install opencv successfully.If you have problems about opencv installing or vs+opencv combine. You can look at this links:
VS 15 and OpenCv 3.1 Install Guide: https://www.youtube.com/watch?v=l4372qtZ4dc
(Common problems: library identification)
I tried this code in my notebook, it can be run slow (on vs). Make sure your webcam works.