Adding XML to Visual Studio for Face Detection

asked 2014-02-06 17:39:47 -0500

dondan1976 gravatar image

Hello there,

I have statically linked OpenCV libs to a Win32 console application in Visual Studio 2012. I got the webcam and face detection working awesome.

I am using the "haarcascade_frontalface_alt.xml" for face detection purpose and this is currently placed in the folder where the exe is present.

I want to link in this xml to project i.e., compile into the project and then use it at run time.

i.e., extract xml data from the compiled in xml file and load it to the corresponding OpenCV function.

Does anyone has suggestions on how to do this?

Any sample code will be helpful.

Thanks in advance.

edit retag flag offensive close merge delete