mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #6062 from StevenPuttemans:fix_cascade_detect
This commit is contained in:
commit
ea8f9b032f
@ -998,7 +998,7 @@ public:
|
||||
{
|
||||
if( result == 1 )
|
||||
result = -(int)classifier->data.stages.size();
|
||||
if( -result >= 0 ) // TODO: Add variable to define a specific last accepted Stage - ABI_COMPATIBILITY problem with new/changed virtual functions - PR #5362
|
||||
if( classifier->data.stages.size() + result == 0 )
|
||||
{
|
||||
mtx->lock();
|
||||
rectangles->push_back(Rect(cvRound(x*scalingFactor),
|
||||
|
Loading…
Reference in New Issue
Block a user