projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4385b1
)
created parameter description doc and output
author
Gary Bradski
<no@email>
Thu, 2 Dec 2010 23:42:46 +0000
(23:42 +0000)
committer
Gary Bradski
<no@email>
Thu, 2 Dec 2010 23:42:46 +0000
(23:42 +0000)
samples/c/latentsvmdetect.cpp
patch
|
blob
|
history
diff --git
a/samples/c/latentsvmdetect.cpp
b/samples/c/latentsvmdetect.cpp
index
8723f95
..
ee1dab6
100644
(file)
--- a/
samples/c/latentsvmdetect.cpp
+++ b/
samples/c/latentsvmdetect.cpp
@@
-4,6
+4,16
@@
\r
using namespace cv;
\r
\r
\r
using namespace cv;
\r
\r
+void help()
\r
+{
\r
+ printf( "This program demonstrated the use of the latentSVM detector.\n"
\r
+ "It reads in a trained object model and then uses that to detect the object in an image\n"
\r
+ "Call:\n"
\r
+ "./latentsvmdetect [<image_filename> <model_filename]\n"
\r
+ " The defaults for image_filename and model_filename are cat.jpg and cat.xml respectively\n"
\r
+ " Press any key to quit.\n");
\r
+}
\r
+
\r
const char* model_filename = "cat.xml";
\r
const char* image_filename = "cat.jpg";
\r
\r
const char* model_filename = "cat.xml";
\r
const char* image_filename = "cat.jpg";
\r
\r
@@
-31,9
+41,9
@@
void detect_and_draw_objects( IplImage* image, CvLatentSvmDetector* detector)
cvReleaseMemStorage( &storage );
\r
}
\r
\r
cvReleaseMemStorage( &storage );
\r
}
\r
\r
-
\r
int main(int argc, char* argv[])
\r
{
\r
int main(int argc, char* argv[])
\r
{
\r
+ help();
\r
if (argc > 2)
\r
{
\r
image_filename = argv[1];
\r
if (argc > 2)
\r
{
\r
image_filename = argv[1];
\r
@@
-63,4
+73,4
@@
int main(int argc, char* argv[])
cvDestroyAllWindows();
\r
\r
return 0;
\r
cvDestroyAllWindows();
\r
\r
return 0;
\r
-}
\ No newline at end of file
+}
\r