Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

yes that's possible, but only for cascades generated by the newer cascade_training tool.

CascadeClassifier cc;
FileStorage fs( the_whole_cascade_in_a_string, FileStorage::READ | FileStorage::MEMORY);
cc.read(fs.getFirstTopLevelNode());

yes that's possible, but only for cascades generated by the newer cascade_training tool.

CascadeClassifier cc;
FileStorage fs( the_whole_cascade_in_a_string, FileStorage::READ | FileStorage::MEMORY);
cc.read(fs.getFirstTopLevelNode());

(you can convert old cascades to the new format with CascadeClassifier::convert() )

yes that's possible, but only for cascades generated by the newer cascade_training tool.

CascadeClassifier cc;
FileStorage fs( the_whole_cascade_in_a_string, FileStorage::READ | FileStorage::MEMORY);
cc.read(fs.getFirstTopLevelNode());

(you (with 3.0, you can convert old cascades to the new format with CascadeClassifier::convert() )