update help according single standart for it

This commit is contained in:
Kirill Kornyakov 2011-05-28 10:53:53 +00:00
parent fe279279e6
commit dc3fe6e9cf
2 changed files with 14 additions and 16 deletions

View File

@ -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" printf("\nThis program demonstrates the contributed flesh detector CvAdaptiveSkinDetector \n"
<< "Usage: " << std::endl << "which can be found in contrib.cpp \n"
exe_name << " --fileMask --firstFrame --lastFrame" << std::endl << std::endl << "Usage: \n"
"Example: " << std::endl << "./adaptiveskindetector [--fileMask]=<path to file, which are used in mask \n"
exe_name << " --fileMask=C:\\VideoSequences\\sample1\\right_view\\temp_%05d.jpg --firstFrame=0 --lastFrame=1000" << std::endl << " [--firstFrame]=<first frame number \n"
" iterates through temp_00000.jpg to temp_01000.jpg" << std::endl << std::endl << " [--lastFrame]=<last frame number> \n"
"If no parameter specified, this application will try to capture from the default Webcam." << std::endl << " if at least one parameter doesn't specified, it will try to use default webcam \n"
"Please note: Background should not contain large surfaces with skin tone." << "Expample: \n"
"\n\n ESC will stop\n" " --fileMask = /home/user_home_directory/work/opencv/samples/c/temp_%%05d.jpg --firstFrame=0 --lastFrame=1000 \n");
"Using OpenCV version %s\n" << CV_VERSION << "\n"
<< std::endl;
} }
int main(int argc, const char** argv ) int main(int argc, const char** argv )
{ {
help(argv[0]); help();
CommandLineParser parser(argc, argv); CommandLineParser parser(argc, argv);

View File

@ -42,9 +42,9 @@ void help(void)
{ {
printf("\nLearn background and find foreground using simple average and average difference learning method:\n" 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" "Originally from the book: Learning OpenCV by O'Reilly press\n"
"\nUSAGE:\n" "\nUsage:\n"
"./bgfg_codebook [--nframes=300] \n" "./bgfg_codebook [--nframes]=<frames number, 300 as default> \n"
" [--input = movie filename or camera index]\n" " [--input]=<movie filename or camera index, zero camera index as default>\n"
"***Keep the focus on the video windows, NOT the consol***\n\n" "***Keep the focus on the video windows, NOT the consol***\n\n"
"INTERACTIVE PARAMETERS:\n" "INTERACTIVE PARAMETERS:\n"
"\tESC,q,Q - quit the program\n" "\tESC,q,Q - quit the program\n"