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:
0f1fdd8
)
appropriate logic behind last accepted stage when rejectingLevels is true
author
Dikay900
<dark900@xyz.de>
Fri, 9 Oct 2015 21:19:42 +0000
(23:19 +0200)
committer
Dikay900
<dark900@xyz.de>
Fri, 9 Oct 2015 21:19:42 +0000
(23:19 +0200)
modules/objdetect/src/cascadedetect.cpp
patch
|
blob
|
history
diff --git
a/modules/objdetect/src/cascadedetect.cpp
b/modules/objdetect/src/cascadedetect.cpp
index
20800ae
..
92c03a9
100644
(file)
--- 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),