Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

in opencv3, Algorithm::load() creates a new instance, so you have to load your SVM like:

 Ptr<ml::SVM> classifier = Algorithm::load<ml::SVM>(filename);

(in your original code, the newly loaded model was discarded, never transferred to your classifier instance)