Ask Your Question

Mark Nareznoy's profile - activity

2016-01-28 07:26:53 -0600 commented question how to use CascadeClassifier::read?

Hi Steven,

I don't really know the difference between the old and the new models. My goal is to be able to use opencv cascade classifier to detect faces, without forcing the user to have a file on his disk.

I mean that I want to be able to have a code which is equal to: CascadeClassifier cascade; cascade.load("haarcascade_frontalface_alt2.xml");

The file "haarcascade_frontalface_alt2.xml" is provided with opencv. If the file "haarcascade_frontalface_alt2.xml" is considered an old model, then how can I get the new model of this file?

Thanks, Mark

2016-01-28 04:48:41 -0600 received badge  Student (source)
2016-01-27 06:08:00 -0600 asked a question how to use CascadeClassifier::read?

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