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
bf808fac
Commit
bf808fac
authored
Dec 02, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created parameter description doc and output
parent
a4385b18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
latentsvmdetect.cpp
samples/c/latentsvmdetect.cpp
+12
-3
No files found.
samples/c/latentsvmdetect.cpp
View file @
bf808fac
...
...
@@ -4,6 +4,16 @@
using
namespace
cv
;
void
help
()
{
printf
(
"This program demonstrated the use of the latentSVM detector.
\n
"
"It reads in a trained object model and then uses that to detect the object in an image
\n
"
"Call:
\n
"
"./latentsvmdetect [<image_filename> <model_filename]
\n
"
" The defaults for image_filename and model_filename are cat.jpg and cat.xml respectively
\n
"
" Press any key to quit.
\n
"
);
}
const
char
*
model_filename
=
"cat.xml"
;
const
char
*
image_filename
=
"cat.jpg"
;
...
...
@@ -31,9 +41,9 @@ void detect_and_draw_objects( IplImage* image, CvLatentSvmDetector* detector)
cvReleaseMemStorage
(
&
storage
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
help
();
if
(
argc
>
2
)
{
image_filename
=
argv
[
1
];
...
...
@@ -63,4 +73,4 @@ int main(int argc, char* argv[])
cvDestroyAllWindows
();
return
0
;
}
\ No newline at end of file
}
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