Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
893e8b43
Commit
893e8b43
authored
Aug 21, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Aug 21, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #942 from achalddave:patch-1
parents
a1b633e2
0bc60925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cascadedetect.cpp
modules/objdetect/src/cascadedetect.cpp
+6
-3
No files found.
modules/objdetect/src/cascadedetect.cpp
View file @
893e8b43
...
...
@@ -178,8 +178,11 @@ void groupRectangles(std::vector<Rect>& rectList, int groupThreshold, double eps
for
(
i
=
0
;
i
<
nclasses
;
i
++
)
{
Rect
r1
=
rrects
[
i
];
int
n1
=
levelWeights
?
rejectLevels
[
i
]
:
rweights
[
i
];
int
n1
=
rweights
[
i
];
double
w1
=
rejectWeights
[
i
];
int
l1
=
rejectLevels
[
i
];
// filter out rectangles which don't have enough similar rectangles
if
(
n1
<=
groupThreshold
)
continue
;
// filter out small face rectangles inside large rectangles
...
...
@@ -207,7 +210,7 @@ void groupRectangles(std::vector<Rect>& rectList, int groupThreshold, double eps
{
rectList
.
push_back
(
r1
);
if
(
weights
)
weights
->
push_back
(
n
1
);
weights
->
push_back
(
l
1
);
if
(
levelWeights
)
levelWeights
->
push_back
(
w1
);
}
...
...
@@ -970,7 +973,7 @@ public:
{
if
(
result
==
1
)
result
=
-
(
int
)
classifier
->
data
.
stages
.
size
();
if
(
classifier
->
data
.
stages
.
size
()
+
result
<
4
)
if
(
classifier
->
data
.
stages
.
size
()
+
result
==
0
)
{
mtx
->
lock
();
rectangles
->
push_back
(
Rect
(
cvRound
(
x
*
scalingFactor
),
cvRound
(
y
*
scalingFactor
),
winSize
.
width
,
winSize
.
height
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment