Hi,
I want to use CascadeClassifier for face detection. I've managed to use it by using the function CascadeClassifier::load("haarcascade_frontalface_alt2.xml"). I want to use the same functinality, but without loading XML file from the disk. I assumed that the way to do it is converting the xml file to some kind of string (static const char* pCascade = "...".) and then use this string to initiate the CascadeClassifier using the function read(const FileNode& node).
My goal is to create an application which uses the CascadeClassifier, WITHOUT forcing the user to place the file "haarcascade_frontalface_alt2.xml" on his disk.
I searched the web and did not find any sample code using the CascadeClassifier read function.
Thanks, Mark