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
c2ef8213
Commit
c2ef8213
authored
Aug 21, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes in modules/datasets/src/track_vot.cpp
parent
55f83b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
track_vot.cpp
modules/datasets/src/track_vot.cpp
+6
-5
No files found.
modules/datasets/src/track_vot.cpp
View file @
c2ef8213
...
...
@@ -106,8 +106,8 @@ namespace cv
void
TRACK_votImpl
::
loadDataset
(
const
string
&
rootPath
)
{
ifstream
namesList
(
rootPath
+
"/list.txt"
)
;
//ifstream lengthsList(rootPath + "/lengths.txt"
);
string
nameListPath
=
rootPath
+
"/list.txt"
;
ifstream
namesList
(
nameListPath
.
c_str
()
);
vector
<
int
>
datasetsLengths
;
string
datasetName
;
...
...
@@ -125,7 +125,8 @@ namespace cv
Ptr
<
TRACK_votObj
>
currDataset
(
new
TRACK_votObj
);
//Open dataset's ground truth file
ifstream
gtList
(
rootPath
+
"/"
+
datasetName
+
"/groundtruth.txt"
);
string
gtListPath
=
rootPath
+
"/"
+
datasetName
+
"/groundtruth.txt"
;
ifstream
gtList
(
gtListPath
.
c_str
());
if
(
!
gtList
.
is_open
())
cout
<<
"Error to open groundtruth.txt!!!"
;
...
...
@@ -133,7 +134,7 @@ namespace cv
int
currFrameID
=
1
;
if
(
currDatasetID
==
0
)
cout
<<
"VOT 2015 Dataset Initialization...
\n
"
;
bool
trFLG
=
true
;
do
{
currFrameID
++
;
...
...
@@ -162,7 +163,7 @@ namespace cv
//Add object to storage
objects
.
push_back
(
currObj
);
}
while
(
tr
ue
);
}
while
(
tr
FLG
);
datasetsLengths
.
push_back
(
currFrameID
-
1
);
data
.
push_back
(
objects
);
...
...
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