projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f41971
)
Fix race condition for Cascade Classifier when TBB enabled.
author
Zifei Tong
<5kilograms@gmail.com>
Thu, 27 Dec 2012 07:43:16 +0000
(15:43 +0800)
committer
Zifei Tong
<5kilograms@gmail.com>
Fri, 28 Dec 2012 12:51:02 +0000
(20:51 +0800)
modules/objdetect/src/cascadedetect.cpp
patch
|
blob
|
history
diff --git
a/modules/objdetect/src/cascadedetect.cpp
b/modules/objdetect/src/cascadedetect.cpp
index
ad3a730
..
38c2e0a
100644
(file)
--- a/
modules/objdetect/src/cascadedetect.cpp
+++ b/
modules/objdetect/src/cascadedetect.cpp
@@
-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 )