mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Fix race condition for Cascade Classifier when TBB enabled.
This commit is contained in:
parent
5f41971305
commit
e331787645
@ -992,9 +992,9 @@ public:
|
||||
{
|
||||
mtx->lock();
|
||||
rectangles->push_back(Rect(cvRound(x*scalingFactor), cvRound(y*scalingFactor), winSize.width, winSize.height));
|
||||
mtx->unlock();
|
||||
rejectLevels->push_back(-result);
|
||||
levelWeights->push_back(gypWeight);
|
||||
mtx->unlock();
|
||||
}
|
||||
}
|
||||
else if( result > 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user