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
25bf3c51
Commit
25bf3c51
authored
Dec 13, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified code a bit
parent
7c4cde7f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
10 deletions
+15
-10
common.cpp
tools/imglab/src/common.cpp
+1
-0
common.h
tools/imglab/src/common.h
+0
-2
convert_idl.cpp
tools/imglab/src/convert_idl.cpp
+2
-1
convert_idl.h
tools/imglab/src/convert_idl.h
+2
-1
convert_pascal_v1.cpp
tools/imglab/src/convert_pascal_v1.cpp
+1
-1
convert_pascal_v1.h
tools/imglab/src/convert_pascal_v1.h
+2
-1
convert_pascal_xml.cpp
tools/imglab/src/convert_pascal_xml.cpp
+2
-1
convert_pascal_xml.h
tools/imglab/src/convert_pascal_xml.h
+2
-1
main.cpp
tools/imglab/src/main.cpp
+3
-2
No files found.
tools/imglab/src/common.cpp
View file @
25bf3c51
...
...
@@ -3,6 +3,7 @@
#include "common.h"
#include <fstream>
#include <dlib/error.h>
// ----------------------------------------------------------------------------------------
...
...
tools/imglab/src/common.h
View file @
25bf3c51
...
...
@@ -4,8 +4,6 @@
#define DLIB_IMGLAB_COmMON_H__
#include <string>
#include <dlib/cmd_line_parser.h>
typedef
dlib
::
cmd_line_parser
<
char
>::
check_1a_c
parser_type
;
// ----------------------------------------------------------------------------------------
...
...
tools/imglab/src/convert_idl.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include <string>
#include <dlib/dir_nav.h>
#include <dlib/time_this.h>
#include <dlib/cmd_line_parser.h>
using
namespace
std
;
using
namespace
dlib
;
...
...
@@ -163,7 +164,7 @@ namespace
}
void
convert_idl
(
const
parser_type
&
parser
const
command_line_parser
&
parser
)
{
cout
<<
"Convert from IDL annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_idl.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVErT_IDL_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_idl
(
const
parser_type
&
parser
);
void
convert_idl
(
const
dlib
::
command_line_parser
&
parser
);
#endif // DLIB_IMGLAB_CONVErT_IDL_H__
...
...
tools/imglab/src/convert_pascal_v1.cpp
View file @
25bf3c51
...
...
@@ -137,7 +137,7 @@ namespace
}
void
convert_pascal_v1
(
const
parser_type
&
parser
const
command_line_parser
&
parser
)
{
cout
<<
"Convert from PASCAL v1.00 annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_pascal_v1.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVERT_PASCAl_V1_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_pascal_v1
(
const
parser_type
&
parser
);
void
convert_pascal_v1
(
const
dlib
::
command_line_parser
&
parser
);
#endif // DLIB_IMGLAB_CONVERT_PASCAl_V1_H__
...
...
tools/imglab/src/convert_pascal_xml.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include <dlib/xml_parser.h>
#include <string>
#include <dlib/dir_nav.h>
#include <dlib/cmd_line_parser.h>
using
namespace
std
;
using
namespace
dlib
;
...
...
@@ -197,7 +198,7 @@ namespace
}
void
convert_pascal_xml
(
const
parser_type
&
parser
const
command_line_parser
&
parser
)
{
cout
<<
"Convert from PASCAL XML annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_pascal_xml.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVERT_PASCAl_XML_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_pascal_xml
(
const
parser_type
&
parser
);
void
convert_pascal_xml
(
const
dlib
::
command_line_parser
&
parser
);
#endif // DLIB_IMGLAB_CONVERT_PASCAl_XML_H__
tools/imglab/src/main.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include "convert_pascal_xml.h"
#include "convert_pascal_v1.h"
#include "convert_idl.h"
#include <dlib/cmd_line_parser.h>
#include <iostream>
#include <fstream>
...
...
@@ -24,7 +25,7 @@ using namespace dlib;
// ----------------------------------------------------------------------------------------
void
create_new_dataset
(
const
parser_type
&
parser
const
command_line_parser
&
parser
)
{
using
namespace
dlib
::
image_dataset_metadata
;
...
...
@@ -118,7 +119,7 @@ int main(int argc, char** argv)
try
{
parser_type
parser
;
command_line_parser
parser
;
parser
.
add_option
(
"h"
,
"Displays this information."
);
parser
.
add_option
(
"c"
,
"Create an XML file named <arg> listing a set of images."
,
1
);
...
...
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