Update hog.cpp

pull/12479/head
Suleyman TURKMEN 6 years ago
parent c35c5a47df
commit 30a4e2f7ac
  1. 5
      modules/objdetect/src/hog.cpp

@ -163,8 +163,9 @@ bool HOGDescriptor::read(FileNode& obj)
FileNode vecNode = obj["SVMDetector"];
if( vecNode.isSeq() )
{
vecNode >> svmDetector;
CV_Assert(checkDetectorSize());
std::vector<float> _svmDetector;
vecNode >> _svmDetector;
setSVMDetector(_svmDetector);
}
return true;
}

Loading…
Cancel
Save