Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

how to use CascadeClassifier::read?

$
0
0
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

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>