Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a4fdf7ef
Commit
a4fdf7ef
authored
Aug 21, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed argument dataset index in examples
parent
db58fd8b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
track_vot.cpp
modules/datasets/samples/track_vot.cpp
+5
-5
multiTracker_dataset.cpp
modules/tracking/samples/multiTracker_dataset.cpp
+6
-6
tracker_dataset.cpp
modules/tracking/samples/tracker_dataset.cpp
+1
-1
No files found.
modules/datasets/samples/track_vot.cpp
View file @
a4fdf7ef
...
@@ -55,15 +55,15 @@ using namespace std;
...
@@ -55,15 +55,15 @@ using namespace std;
using
namespace
cv
;
using
namespace
cv
;
using
namespace
cv
::
datasets
;
using
namespace
cv
::
datasets
;
#define DATASET_ID 1
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
const
char
*
keys
=
const
char
*
keys
=
"{ help h usage ? | | show this message }"
"{ help h usage ? | | show this message }"
"{ path p |true| path to folder with dataset }"
;
"{ path p |true| path to folder with dataset }"
"{ datasetID id |1| Dataset ID}"
;
CommandLineParser
parser
(
argc
,
argv
,
keys
);
CommandLineParser
parser
(
argc
,
argv
,
keys
);
string
path
(
parser
.
get
<
string
>
(
"path"
));
string
path
(
parser
.
get
<
string
>
(
"path"
));
int
datasetID
(
parser
.
get
<
int
>
(
"datasetID"
));
if
(
parser
.
has
(
"help"
)
||
path
==
"true"
)
if
(
parser
.
has
(
"help"
)
||
path
==
"true"
)
{
{
parser
.
printMessage
();
parser
.
printMessage
();
...
@@ -77,9 +77,9 @@ int main(int argc, char *argv[])
...
@@ -77,9 +77,9 @@ int main(int argc, char *argv[])
for
(
int
i
=
1
;
i
<=
dataset
->
getDatasetsNum
();
i
++
)
for
(
int
i
=
1
;
i
<=
dataset
->
getDatasetsNum
();
i
++
)
printf
(
"
\t
Dataset #%d size: %d
\n
"
,
i
,
dataset
->
getDatasetLength
(
i
));
printf
(
"
\t
Dataset #%d size: %d
\n
"
,
i
,
dataset
->
getDatasetLength
(
i
));
dataset
->
initDataset
(
DATASET_
ID
);
dataset
->
initDataset
(
dataset
ID
);
for
(
int
i
=
0
;
i
<
dataset
->
getDatasetLength
(
DATASET_
ID
);
i
++
)
for
(
int
i
=
0
;
i
<
dataset
->
getDatasetLength
(
dataset
ID
);
i
++
)
{
{
Mat
frame
;
Mat
frame
;
dataset
->
getNextFrame
(
frame
);
dataset
->
getNextFrame
(
frame
);
...
...
modules/tracking/samples/multiTracker_dataset.cpp
View file @
a4fdf7ef
...
@@ -65,9 +65,9 @@ Rect2d boundingBox;
...
@@ -65,9 +65,9 @@ Rect2d boundingBox;
static
const
char
*
keys
=
static
const
char
*
keys
=
{
"{@tracker_algorithm | | Tracker algorithm }"
{
"{@tracker_algorithm | | Tracker algorithm }"
"{@dataset_path |true| Dataset path }"
"{@dataset_id |1| Dataset path }"
"{@target_num |1| Number of targets }"
"{@target_num |1| Number of targets }"
"{@dataset_path |true| Dataset path }"
"{@dataset_id |1| Dataset ID }"
};
};
static
void
onMouse
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
static
void
onMouse
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
...
@@ -119,7 +119,7 @@ static void help()
...
@@ -119,7 +119,7 @@ static void help()
"TLD dataset ID: 1~10, VOT2015 dataset ID: 1~60
\n
"
"TLD dataset ID: 1~10, VOT2015 dataset ID: 1~60
\n
"
"-- pause video [p] and draw a bounding boxes around the targets to start the tracker
\n
"
"-- pause video [p] and draw a bounding boxes around the targets to start the tracker
\n
"
"Example:
\n
"
"Example:
\n
"
"./example_tracking_multiTracker_dataset<tracker_algorithm> <
dataset_path> <dataset_id> <number_of_targets
>
\n
"
"./example_tracking_multiTracker_dataset<tracker_algorithm> <
number_of_targets> <dataset_path> <dataset_id
>
\n
"
<<
endl
;
<<
endl
;
cout
<<
"
\n\n
Hot keys:
\n
"
cout
<<
"
\n\n
Hot keys:
\n
"
...
@@ -131,9 +131,9 @@ int main(int argc, char *argv[])
...
@@ -131,9 +131,9 @@ int main(int argc, char *argv[])
{
{
CommandLineParser
parser
(
argc
,
argv
,
keys
);
CommandLineParser
parser
(
argc
,
argv
,
keys
);
string
tracker_algorithm
=
parser
.
get
<
string
>
(
0
);
string
tracker_algorithm
=
parser
.
get
<
string
>
(
0
);
string
datasetRootPath
=
parser
.
get
<
string
>
(
1
);
targetsNum
=
parser
.
get
<
int
>
(
1
);
int
datasetID
=
parser
.
get
<
int
>
(
2
);
string
datasetRootPath
=
parser
.
get
<
string
>
(
2
);
targetsNum
=
parser
.
get
<
int
>
(
3
);
int
datasetID
=
parser
.
get
<
int
>
(
3
);
if
(
tracker_algorithm
.
empty
()
||
datasetRootPath
.
empty
()
||
targetsNum
<
1
)
if
(
tracker_algorithm
.
empty
()
||
datasetRootPath
.
empty
()
||
targetsNum
<
1
)
{
{
help
();
help
();
...
...
modules/tracking/samples/tracker_dataset.cpp
View file @
a4fdf7ef
...
@@ -65,7 +65,7 @@ static bool startSelection = false;
...
@@ -65,7 +65,7 @@ static bool startSelection = false;
static
const
char
*
keys
=
static
const
char
*
keys
=
{
"{@tracker_algorithm | | Tracker algorithm }"
{
"{@tracker_algorithm | | Tracker algorithm }"
"{@dataset_path |true| Dataset path }"
"{@dataset_path |true| Dataset path }"
"{@dataset_id |1| Dataset
path
}"
"{@dataset_id |1| Dataset
ID
}"
};
};
static
void
onMouse
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
static
void
onMouse
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
...
...
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