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
ba626215
Commit
ba626215
authored
Oct 04, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated test on lsvm
parent
af730e4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
test_latentsvmdetector.cpp
modules/objdetect/test/test_latentsvmdetector.cpp
+15
-0
No files found.
modules/objdetect/test/test_latentsvmdetector.cpp
View file @
ba626215
...
...
@@ -238,6 +238,7 @@ void LatentSVMDetectorTest::run( int /* start_from */)
return
;
}
// 1. Test method detect
// Run detectors
vector
<
LatentSvmDetector
::
ObjectDetection
>
detections1_cat
,
detections12_cat
,
detections12_cars
;
detector1
.
detect
(
image_cat
,
detections1_cat
,
0.5
,
numThreads
);
...
...
@@ -283,6 +284,20 @@ void LatentSVMDetectorTest::run( int /* start_from */)
std
::
cerr
<<
"File "
<<
true_res_path
<<
" cann't be opened to save test results"
<<
std
::
endl
;
}
// 2. Simple tests of other methods
if
(
detector1
.
getClassCount
()
!=
1
||
detector1
.
getClassNames
()[
0
]
!=
"cat"
)
{
std
::
cerr
<<
"Incorrect result of method getClassNames() or getClassCount()"
<<
std
::
endl
;
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_OUTPUT
);
}
detector1
.
clear
();
if
(
!
detector1
.
empty
()
)
{
std
::
cerr
<<
"There is a bug in method clear() or empty()"
<<
std
::
endl
;
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_OUTPUT
);
}
ts
->
set_failed_test_info
(
cvtest
::
TS
::
OK
);
}
...
...
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