Im using EMGUCV at Visual Studio 2017. I need to set a XML file to a cascadeClassifier like this:
CascadeClassifier cascadeClassifier = new CascadeClassifier(@"cascadeClassifier\haarcascade_frontalface_alt2.xml");
Doing this way I need to get a copy of XML file to my Release. So I discover the resource stuff by this question here. So I add the XML to my resource and tried to access it by:
CascadeClassifier cascadeClassifier = new CascadeClassifier(Properties.Resources.haarcascade_frontalface_alt2);
But this object resource is a string and the CascadeClassifier is expecting a filename, is there a way to do it?