1 | initial version |
The code compiles just fine. I have just checked it with OpenCV 2.4.8. It spits out a list of faces' coords and dimensions. It also does some superfluous stuff like loading an eye cascade and drawing ellipses around faces (and never showing the final image).
Anyways, IT WORKS. Make sure you have configured the OpenCV paths and libs correctly. What errors are you getting?