Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
47c84335
Commit
47c84335
authored
Apr 17, 2013
by
Kevin Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed starter_image_sequence.cpp
parent
eedb6fa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
69 deletions
+0
-69
starter_image_sequence.cpp
samples/cpp/starter_image_sequence.cpp
+0
-69
No files found.
samples/cpp/starter_image_sequence.cpp
deleted
100755 → 0
View file @
eedb6fa3
/*
* starter_image_sequence.cpp
*
* Created on: July 23, 2012
* Author: Kevin Hughes
*
* A simple example of how to use the built in functionality of cv::VideoCapture to handle
* sequences of images. Image sequences are a common way to distribute data sets for various
* computer vision problems, for example the change detection data set from CVPR 2012
* http://www.changedetection.net/
*
*/
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using
namespace
cv
;
using
namespace
std
;
void
help
(
char
**
argv
)
{
cout
<<
"
\n
This program gets you started reading a sequence of images using cv::VideoCapture.
\n
"
<<
"Image sequences are a common way to distribute video data sets for computer vision.
\n
"
<<
"Usage: "
<<
argv
[
0
]
<<
" <path to the first image in the sequence>
\n
"
<<
"example: "
<<
argv
[
0
]
<<
" right%%02d.jpg
\n
"
<<
"q,Q,esc -- quit
\n
"
<<
"
\t
This is a starter sample, to get you up and going in a copy pasta fashion
\n
"
<<
endl
;
}
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
2
)
{
help
(
argv
);
return
1
;
}
string
arg
=
argv
[
1
];
VideoCapture
sequence
(
arg
);
if
(
!
sequence
.
isOpened
())
{
cerr
<<
"Failed to open Image Sequence!
\n
"
<<
endl
;
return
1
;
}
Mat
image
;
namedWindow
(
"Image | q or esc to quit"
,
CV_WINDOW_NORMAL
);
for
(;;)
{
sequence
>>
image
;
if
(
image
.
empty
())
{
cout
<<
"End of Sequence"
<<
endl
;
break
;
}
imshow
(
"image | q or esc to quit"
,
image
);
char
key
=
(
char
)
waitKey
(
500
);
if
(
key
==
'q'
||
key
==
'Q'
||
key
==
27
)
break
;
}
return
0
;
}
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