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
cbf79333
Commit
cbf79333
authored
Aug 25, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed headers, messages and *protected:*
parent
5b982fb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
track_vot.hpp
modules/datasets/include/opencv2/datasets/track_vot.hpp
+0
-6
track_vot.cpp
modules/datasets/src/track_vot.cpp
+10
-7
No files found.
modules/datasets/include/opencv2/datasets/track_vot.hpp
View file @
cbf79333
...
...
@@ -44,15 +44,9 @@
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include "opencv2/datasets/dataset.hpp"
#include "opencv2/datasets/util.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2/core.hpp>
#include <sys/stat.h>
using
namespace
std
;
...
...
modules/datasets/src/track_vot.cpp
View file @
cbf79333
...
...
@@ -41,6 +41,10 @@
#include "opencv2/datasets/track_vot.hpp"
#include <sys/stat.h>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
using
namespace
std
;
namespace
cv
...
...
@@ -54,7 +58,6 @@ namespace cv
//Constructor
TRACK_votImpl
()
{
activeDatasetID
=
1
;
frameCounter
=
0
;
}
...
...
@@ -64,6 +67,7 @@ namespace cv
//Load Dataset
virtual
void
load
(
const
string
&
path
);
protected
:
virtual
int
getDatasetsNum
();
virtual
int
getDatasetLength
(
int
id
);
...
...
@@ -74,7 +78,6 @@ namespace cv
virtual
vector
<
Point2d
>
getGT
();
private
:
void
loadDataset
(
const
string
&
path
);
string
numberToString
(
int
number
);
...
...
@@ -128,12 +131,12 @@ namespace cv
string
gtListPath
=
rootPath
+
"/"
+
datasetName
+
"/groundtruth.txt"
;
ifstream
gtList
(
gtListPath
.
c_str
());
if
(
!
gtList
.
is_open
())
cout
<<
"Error to open groundtruth.txt!!!"
;
printf
(
"Error to open groundtruth.txt!!!"
)
;
//Make a list of datasets lengths
int
currFrameID
=
1
;
if
(
currDatasetID
==
0
)
cout
<<
"VOT 2015 Dataset Initialization...
\n
"
;
printf
(
"VOT 2015 Dataset Initialization...
\n
"
)
;
bool
trFLG
=
true
;
do
{
...
...
@@ -171,7 +174,7 @@ namespace cv
}
else
{
cout
<<
rootPath
+
"Couldn't find a *list.txt* in VOT 2015 folder!!!"
;
printf
(
"Couldn't find a *list.txt* in VOT 2015 folder!!!"
)
;
}
namesList
.
close
();
...
...
@@ -189,7 +192,7 @@ namespace cv
return
(
int
)(
data
[
id
-
1
].
size
());
else
{
cout
<<
"Dataset ID is out of range...
\n
"
<<
"Allowed IDs are: 1~"
<<
(
int
)
data
.
size
()
<<
endl
;
printf
(
"Dataset ID is out of range...
\n
Allowed IDs are: 1~%d
\n
"
,
(
int
)
data
.
size
())
;
return
-
1
;
}
}
...
...
@@ -203,7 +206,7 @@ namespace cv
}
else
{
cout
<<
"Dataset ID is out of range...
\n
"
<<
"Allowed IDs are: 1~"
<<
(
int
)
data
.
size
()
<<
endl
;
printf
(
"Dataset ID is out of range...
\n
Allowed IDs are: 1~%d
\n
"
,
(
int
)
data
.
size
())
;
return
false
;
}
}
...
...
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