mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
appropriate logic behind last accepted stage when rejectingLevels is true
This commit is contained in:
parent
0f1fdd885d
commit
7b0b12de58
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user