Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
f7165919
Commit
f7165919
authored
Nov 12, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified example programs
parent
44be25e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
14 deletions
+3
-14
bsp_ex.cpp
examples/bsp_ex.cpp
+1
-3
compress_stream_ex.cpp
examples/compress_stream_ex.cpp
+1
-8
train_object_detector.cpp
examples/train_object_detector.cpp
+1
-3
No files found.
examples/bsp_ex.cpp
View file @
f7165919
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
#include <iostream>
#include <iostream>
typedef
dlib
::
cmd_line_parser
<
char
>::
check_1a_c
clp_parser
;
using
namespace
std
;
using
namespace
std
;
using
namespace
dlib
;
using
namespace
dlib
;
...
@@ -105,7 +103,7 @@ int main(int argc, char** argv)
...
@@ -105,7 +103,7 @@ int main(int argc, char** argv)
{
{
try
try
{
{
c
lp
_parser
parser
;
c
ommand_line
_parser
parser
;
parser
.
add_option
(
"h"
,
"Display this help message."
);
parser
.
add_option
(
"h"
,
"Display this help message."
);
parser
.
add_option
(
"l"
,
"Run as a listening BSP node."
,
1
);
parser
.
add_option
(
"l"
,
"Run as a listening BSP node."
,
1
);
...
...
examples/compress_stream_ex.cpp
View file @
f7165919
...
@@ -36,13 +36,6 @@ typedef dlib::compress_stream::kernel_1da cs1;
...
@@ -36,13 +36,6 @@ typedef dlib::compress_stream::kernel_1da cs1;
typedef
dlib
::
compress_stream
::
kernel_1ea
cs2
;
typedef
dlib
::
compress_stream
::
kernel_1ea
cs2
;
typedef
dlib
::
compress_stream
::
kernel_1ec
cs3
;
typedef
dlib
::
compress_stream
::
kernel_1ec
cs3
;
// Here I am making another typedef, this time for the version of
// cmd_line_parser I want to use. This version gives me a
// command line parser object that has all the available extensions
// for command line parsers applied to it. So I will be able to use
// its command line validation utilities as well as option printing.
typedef
dlib
::
cmd_line_parser
<
char
>::
check_1a_c
clp
;
using
namespace
std
;
using
namespace
std
;
using
namespace
dlib
;
using
namespace
dlib
;
...
@@ -52,7 +45,7 @@ int main(int argc, char** argv)
...
@@ -52,7 +45,7 @@ int main(int argc, char** argv)
{
{
try
try
{
{
c
lp
parser
;
c
ommand_line_parser
parser
;
// first I will define the command line options I want.
// first I will define the command line options I want.
// Add a -c option and tell the parser what the option is for.
// Add a -c option and tell the parser what the option is for.
...
...
examples/train_object_detector.cpp
View file @
f7165919
...
@@ -77,15 +77,13 @@
...
@@ -77,15 +77,13 @@
using
namespace
std
;
using
namespace
std
;
using
namespace
dlib
;
using
namespace
dlib
;
typedef
dlib
::
cmd_line_parser
<
char
>::
check_1a_c
clp_type
;
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
try
try
{
{
c
lp_type
parser
;
c
ommand_line_parser
parser
;
parser
.
add_option
(
"h"
,
"Display this help message."
);
parser
.
add_option
(
"h"
,
"Display this help message."
);
parser
.
add_option
(
"v"
,
"Be verbose."
);
parser
.
add_option
(
"v"
,
"Be verbose."
);
parser
.
add_option
(
"t"
,
"Train an object detector and save the detector to disk."
);
parser
.
add_option
(
"t"
,
"Train an object detector and save the detector to disk."
);
...
...
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