mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Merge pull request #12649 from sturkmen72:patch-9
Update hog.cpp (#12649)
This commit is contained in:
parent
b41f38ecc7
commit
ee0c985491
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user