Merge pull request #12479 from sturkmen72:patch-2

pull/12501/head
Alexander Alekhin 6 years ago
commit be2ccdbf0b
  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