Can anyone compile this very simple OpenCV C++ script?
I am playing with face detection in OpenCV. I found this very simple Windows command line program someone coded:
You just run a command like "facedetect.exe myimage.jpg" and it spits out the coordinates and dimensions of every found face.
The executable works fine, but I have been unable to get the source code to compile. I'd like to be able to adjust which Haar Cascade XML files it looks at.
As I said, it's a very simple script -- just one CXX file. I would not be surprised if there was little trouble in compiling it. I would very much appreciate it if someone knows how to adjust the XMLs and compile it for me! (I have been unable to contact the author.)
Thanks a lot!
You can refer Face detection example on OpenCV Tutorial Page http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.htmlhttp://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html
First of all, if you want to do face detectionn and play with models, use the openCV examples, which compile just fine. As to the guys sourcecode, you cannot expect us to go dig in that code to find his programming mistake or the reason why you cannot build it ...
Thanks! I'll look at the examples.