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
dc3fe6e9
Commit
dc3fe6e9
authored
May 28, 2011
by
Kirill Kornyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update help according single standart for it
parent
fe279279
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
adaptiveskindetector.cpp
samples/c/adaptiveskindetector.cpp
+11
-13
bgfg_codebook.cpp
samples/c/bgfg_codebook.cpp
+3
-3
No files found.
samples/c/adaptiveskindetector.cpp
View file @
dc3fe6e9
...
...
@@ -323,24 +323,22 @@ void displayBuffer(IplImage *rgbDestImage, IplImage *buffer, int rValue, int gVa
}
};
void
help
(
const
char
*
exe_name
)
void
help
()
{
std
::
cout
<<
"
\n
This 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
(
"
\n
This program demonstrates the contributed flesh detector CvAdaptiveSkinDetector
\n
"
"which can be found in contrib.cpp
\n
"
"Usage:
\n
"
"./adaptiveskindetector [--fileMask]=<path to file, which are used in mask
\n
"
" [--firstFrame]=<first frame number
\n
"
" [--lastFrame]=<last frame number>
\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
);
...
...
samples/c/bgfg_codebook.cpp
View file @
dc3fe6e9
...
...
@@ -42,9 +42,9 @@ void help(void)
{
printf
(
"
\n
Learn background and find foreground using simple average and average difference learning method:
\n
"
"Originally from the book: Learning OpenCV by O'Reilly press
\n
"
"
\n
U
SAGE
:
\n
"
"./bgfg_codebook [--nframes
=300]
\n
"
"
[--input = movie filename or camera index]
\n
"
"
\n
U
sage
:
\n
"
"./bgfg_codebook [--nframes
]=<frames number, 300 as default>
\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
"
"INTERACTIVE PARAMETERS:
\n
"
"
\t
ESC,q,Q - quit the program
\n
"
...
...
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