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
3db19c04
Commit
3db19c04
authored
May 11, 2016
by
DozyC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix command line argument handling, fixes #6525
parent
af64ecdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
hog.cpp
samples/tapi/hog.cpp
+2
-4
No files found.
samples/tapi/hog.cpp
View file @
3db19c04
...
...
@@ -76,10 +76,8 @@ int main(int argc, char** argv)
"{ s scale | 1.0 | resize the image before detect}"
"{ o output | | specify output path when input is images}"
;
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
if
(
cmd
.
has
(
"help"
))
if
(
cmd
.
get
<
bool
>
(
"help"
))
{
cout
<<
"Usage : hog [options]"
<<
endl
;
cout
<<
"Available options:"
<<
endl
;
cmd
.
printMessage
();
return
EXIT_SUCCESS
;
}
...
...
@@ -117,7 +115,7 @@ App::App(CommandLineParser& cmd)
<<
"
\t
4/r - increase/decrease hit threshold
\n
"
<<
endl
;
make_gray
=
cmd
.
has
(
"gray"
);
make_gray
=
cmd
.
get
<
bool
>
(
"gray"
);
resize_scale
=
cmd
.
get
<
double
>
(
"s"
);
vdo_source
=
cmd
.
get
<
string
>
(
"v"
);
img_source
=
cmd
.
get
<
string
>
(
"i"
);
...
...
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