appropriate logic behind last accepted stage when rejectingLevels is true
authorDikay900 <dark900@xyz.de>
Fri, 9 Oct 2015 21:19:42 +0000 (23:19 +0200)
committerDikay900 <dark900@xyz.de>
Fri, 9 Oct 2015 21:19:42 +0000 (23:19 +0200)
modules/objdetect/src/cascadedetect.cpp

index 20800ae..92c03a9 100644 (file)
@@ -998,7 +998,7 @@ public:
                     {
                         if( result == 1 )
                             result = -(int)classifier->data.stages.size();
-                        if( classifier->data.stages.size() + result == 0 )
+                        if( -result >= 0 ) // TODO: Add variable to define a specific last accepted Stage - ABI_COMPATIBILITY problem with new/changed virtual functions - PR #5362
                         {
                             mtx->lock();
                             rectangles->push_back(Rect(cvRound(x*scalingFactor),