We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier directly to others.
One way we were trying is to pre-compile the xml's content into the programe and use it to instanlized a CascadeClassifier when it runs.
So we find that, through code like the below, the content in a xml can be compiled into the .exe(executable) file, and presented as a const char *. However, the constractors or the classifier either a filename or a FileNode object for instanlization.
Is there a way to transform a const char * to a FileNode object?
const char *VX =
#include "./models/haarcascade_smile_R.xml"
;
Besides, are there anyother ways to 'hide' the configuration? Make it not so easy to be 'human-readable' as an xml.