Merge pull request #12649 from sturkmen72:patch-9

Update hog.cpp (#12649)
This commit is contained in:
Suleyman TURKMEN 2018-10-01 22:22:37 +03:00 committed by Alexander Alekhin
parent b41f38ecc7
commit ee0c985491

View File

@ -138,6 +138,8 @@ void HOGDescriptor::setSVMDetector(InputArray _svmDetector)
bool HOGDescriptor::read(FileNode& obj)
{
CV_Assert(!obj["winSize"].empty());
if( !obj.isMap() )
return false;
FileNodeIterator it = obj["winSize"].begin();