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
2858b7bb
Commit
2858b7bb
authored
Aug 21, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segmentation fault error in TRACK_vot::getNextFrame()
parent
4e1d8ed8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
track_vot.cpp
modules/datasets/samples/track_vot.cpp
+2
-2
track_vot.cpp
modules/datasets/src/track_vot.cpp
+4
-1
No files found.
modules/datasets/samples/track_vot.cpp
View file @
2858b7bb
...
...
@@ -82,8 +82,8 @@ int main(int argc, char *argv[])
for
(
int
i
=
0
;
i
<
dataset
->
getDatasetLength
(
datasetID
);
i
++
)
{
Mat
frame
;
dataset
->
getNextFrame
(
frame
);
if
(
!
dataset
->
getNextFrame
(
frame
))
break
;
//Draw Ground Truth BB
vector
<
Point2d
>
gtPoints
=
dataset
->
getGT
();
for
(
int
j
=
0
;
j
<
(
int
)(
gtPoints
.
size
()
-
1
);
j
++
)
...
...
modules/datasets/src/track_vot.cpp
View file @
2858b7bb
...
...
@@ -211,7 +211,10 @@ namespace cv
bool
TRACK_votImpl
::
getNextFrame
(
Mat
&
frame
)
{
frame
=
imread
(
data
[
activeDatasetID
-
1
][
frameCounter
]
->
imagePath
);
if
(
frameCounter
>=
(
int
)
data
[
activeDatasetID
-
1
].
size
())
return
false
;
string
imgPath
=
data
[
activeDatasetID
-
1
][
frameCounter
]
->
imagePath
;
frame
=
imread
(
imgPath
);
frameCounter
++
;
return
!
frame
.
empty
();
}
...
...
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