From dc3fe6e9cfdf7cf211b072d120df7390e3da72bc Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Sat, 28 May 2011 10:53:53 +0000 Subject: [PATCH] update help according single standart for it --- samples/c/adaptiveskindetector.cpp | 24 +++++++++++------------- samples/c/bgfg_codebook.cpp | 6 +++--- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/samples/c/adaptiveskindetector.cpp b/samples/c/adaptiveskindetector.cpp index 231eb4ca38..8afffba4d6 100644 --- a/samples/c/adaptiveskindetector.cpp +++ b/samples/c/adaptiveskindetector.cpp @@ -323,24 +323,22 @@ void displayBuffer(IplImage *rgbDestImage, IplImage *buffer, int rValue, int gVa } }; -void help(const char *exe_name) +void help() { - std::cout << "\nThis program demonstrates the contributed flesh detector CvAdaptiveSkinDetector which can be found in contrib.cpp\n" - << "Usage: " << std::endl << - exe_name << " --fileMask --firstFrame --lastFrame" << std::endl << std::endl << - "Example: " << std::endl << - exe_name << " --fileMask=C:\\VideoSequences\\sample1\\right_view\\temp_%05d.jpg --firstFrame=0 --lastFrame=1000" << std::endl << - " iterates through temp_00000.jpg to temp_01000.jpg" << std::endl << std::endl << - "If no parameter specified, this application will try to capture from the default Webcam." << std::endl << - "Please note: Background should not contain large surfaces with skin tone." << - "\n\n ESC will stop\n" - "Using OpenCV version %s\n" << CV_VERSION << "\n" - << std::endl; + printf("\nThis program demonstrates the contributed flesh detector CvAdaptiveSkinDetector \n" + "which can be found in contrib.cpp \n" + "Usage: \n" + "./adaptiveskindetector [--fileMask]= \n" + " if at least one parameter doesn't specified, it will try to use default webcam \n" + "Expample: \n" + " --fileMask = /home/user_home_directory/work/opencv/samples/c/temp_%%05d.jpg --firstFrame=0 --lastFrame=1000 \n"); } int main(int argc, const char** argv ) { - help(argv[0]); + help(); CommandLineParser parser(argc, argv); diff --git a/samples/c/bgfg_codebook.cpp b/samples/c/bgfg_codebook.cpp index 6460aa7f87..07c3ad67e4 100644 --- a/samples/c/bgfg_codebook.cpp +++ b/samples/c/bgfg_codebook.cpp @@ -42,9 +42,9 @@ void help(void) { printf("\nLearn background and find foreground using simple average and average difference learning method:\n" "Originally from the book: Learning OpenCV by O'Reilly press\n" - "\nUSAGE:\n" - "./bgfg_codebook [--nframes=300] \n" - " [--input = movie filename or camera index]\n" + "\nUsage:\n" + "./bgfg_codebook [--nframes]= \n" + " [--input]=\n" "***Keep the focus on the video windows, NOT the consol***\n\n" "INTERACTIVE PARAMETERS:\n" "\tESC,q,Q - quit the program\n"