Skip to content

Commit

Permalink
bugfix findHaarObjects. fixes constant push back to blobs every frame. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored Nov 5, 2019
1 parent fe1f85b commit b479cae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/ofxOpenCv/src/ofxCvHaarFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ int ofxCvHaarFinder::findHaarObjects(const ofxCvGrayscaleImage& input,
}

#else
if (!blobs.empty()){
blobs.clear();
}

if( cascade.empty() )
return 0;

Expand Down

0 comments on commit b479cae

Please sign in to comment.