fixing issue #4969 of Itseez/opencv.
Someone forgot to wrap the load function for SVMs in the corresponding ml python module. Fixed that.
This commit is contained in:
@@ -2261,6 +2261,17 @@ Ptr<SVM> SVM::create()
|
||||
return makePtr<SVMImpl>();
|
||||
}
|
||||
|
||||
Ptr<SVM> SVM::load(const String& filename)
|
||||
{
|
||||
FileStorage fs;
|
||||
fs.open(filename, FileStorage::READ);
|
||||
|
||||
Ptr<SVM> svm = makePtr<SVMImpl>();
|
||||
|
||||
svm->read(fs.getFirstTopLevelNode());
|
||||
return svm;
|
||||
}
|
||||
|
||||
Mat SVM::getUncompressedSupportVectors() const
|
||||
{
|
||||
const SVMImpl* this_ = dynamic_cast<const SVMImpl*>(this);
|
||||
|
Reference in New Issue
Block a user