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
ed3c3822
Commit
ed3c3822
authored
Feb 28, 2013
by
yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust some test cases, use original template file name in Haar
parent
bf427c01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
performance.cpp
samples/ocl/performance.cpp
+7
-7
No files found.
samples/ocl/performance.cpp
View file @
ed3c3822
...
...
@@ -25,7 +25,7 @@ using namespace cv;
// This program test most of the functions in ocl module and generate data metrix of x-factor in .csv files
// All images needed in this test are in samples/gpu folder.
// For haar template,
please rename it to facedetect.xml
// For haar template,
haarcascade_frontalface_alt.xml shouold be in working directory
void
gen
(
Mat
&
mat
,
int
rows
,
int
cols
,
int
type
,
Scalar
low
,
Scalar
high
);
string
abspath
(
const
string
&
relpath
);
...
...
@@ -707,7 +707,7 @@ TEST(matchTemplate)
for
(
size_t
j
=
0
;
j
<
sizeof
(
all_type
)
/
sizeof
(
int
);
j
++
)
{
for
(
templ_size
=
5
;
templ_size
<=
5
;
templ_size
*=
5
)
for
(
templ_size
=
5
;
templ_size
<=
5
;
templ_size
*=
5
)
{
gen
(
src
,
size
,
size
,
all_type
[
j
],
0
,
1
);
...
...
@@ -749,7 +749,7 @@ TEST(matchTemplate)
for
(
size_t
j
=
0
;
j
<
sizeof
(
all_type_8U
)
/
sizeof
(
int
);
j
++
)
{
for
(
templ_size
=
5
;
templ_size
<
200
;
templ_size
*=
5
)
for
(
templ_size
=
5
;
templ_size
<
=
5
;
templ_size
*=
5
)
{
SUBTEST
<<
src
.
cols
<<
'x'
<<
src
.
rows
<<
"; "
<<
type_name_8U
[
j
]
<<
"; templ "
<<
templ_size
<<
'x'
<<
templ_size
<<
"; CCORR_NORMED"
;
...
...
@@ -1063,9 +1063,9 @@ TEST(Haar)
CascadeClassifier
faceCascadeCPU
;
if
(
!
faceCascadeCPU
.
load
(
abspath
(
"
facedetec
t.xml"
)))
if
(
!
faceCascadeCPU
.
load
(
abspath
(
"
haarcascade_frontalface_al
t.xml"
)))
{
throw
runtime_error
(
"can't load
facedetec
t.xml"
);
throw
runtime_error
(
"can't load
haarcascade_frontalface_al
t.xml"
);
}
vector
<
Rect
>
faces
;
...
...
@@ -1079,9 +1079,9 @@ TEST(Haar)
#ifdef USE_OPENCL
ocl
::
CascadeClassifier_GPU
faceCascade
;
if
(
!
faceCascade
.
load
(
abspath
(
"
facedetec
t.xml"
)))
if
(
!
faceCascade
.
load
(
abspath
(
"
haarcascade_frontalface_al
t.xml"
)))
{
throw
runtime_error
(
"can't load
facedetec
t.xml"
);
throw
runtime_error
(
"can't load
haarcascade_frontalface_al
t.xml"
);
}
ocl
::
oclMat
d_img
(
img
);
...
...
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