Skip to content

Commit

Permalink
Merge pull request opencv#12649 from sturkmen72:patch-9
Browse files Browse the repository at this point in the history
Update hog.cpp (opencv#12649)
  • Loading branch information
sturkmen72 authored and alalek committed Oct 1, 2018
1 parent b41f38e commit ee0c985
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/objdetect/src/hog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ee0c985

Please sign in to comment.