From: Dikay900 Date: Fri, 9 Oct 2015 21:19:42 +0000 (+0200) Subject: appropriate logic behind last accepted stage when rejectingLevels is true X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2103^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b0b12de58f997218e226f36d052bc6b35238461;p=platform%2Fupstream%2Fopencv.git appropriate logic behind last accepted stage when rejectingLevels is true --- diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index 20800ae..92c03a9 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -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),