Skip to content

added an example of using cv::VideoCapture to read image sequences#823

Merged
opencv-pushbot merged 5 commits intoopencv:masterfrom
kevinhughes27:starter_image_sequence
May 14, 2013
Merged

added an example of using cv::VideoCapture to read image sequences#823
opencv-pushbot merged 5 commits intoopencv:masterfrom
kevinhughes27:starter_image_sequence

Conversation

@kevinhughes27
Copy link
Copy Markdown
Contributor

For example this code could read an image sequence such as 000.pmg, 001.png ... 100.png etc. as if it were a video. This is a very useful functionality of cv::VideoCapture because computer vision datasets are often distributed in this form.

@ghost ghost assigned vpisarev Apr 16, 2013
@vpisarev
Copy link
Copy Markdown
Contributor

hello! thank you for the contribution!

I see that your sample is very similar to opencv/samples/cpp/starter_video.cpp.
I think, it's better to tweak a little starter_video.cpp to handle both cases (camera and video file/image sequence).
Could you please do that?

Vadim

@kevinhughes27
Copy link
Copy Markdown
Contributor Author

Yeah its almost the exact same example because the functionality of cv::VideoCapture works like this (which is a good thing and its what I want to demonstrate).

The issue I see is that if I modify the starter_video.cpp sample someone inexperienced looking for how to read image sequences probably won't open that sample. I don't know what the best way to proceed is, I see the concern for having similar samples.

@vpisarev
Copy link
Copy Markdown
Contributor

Hi Kevin,
I understand. So, this is a question of finding the sample code. Of course, there are many similar problems in OpenCV. We have hundreds of functions and we cannot have that many samples. Then it comes down to using tags or something like that. We have idea of creating an annotated list of samples so that people can find the right sample more easily. For now you can put the note about reading an image sequence as a possible option to the starter_video sample, into help() function, the description it prints. That's the first place we will look at when we create such an annotated list of samples.

@kevinhughes27
Copy link
Copy Markdown
Contributor Author

Good point - I'll merge my code with the existing starter_video.cpp and modify the comment block at the top to note this functionality.

Kevin Hughes added 2 commits April 17, 2013 13:20
…rter_video.cpp to better explain the functionality of VideoCapture. I also added a bit more explanation in the documentation of the VideoCapture interface
@kevinhughes27
Copy link
Copy Markdown
Contributor Author

I've updated the starter_video example and added a little extra to the documentation. What do you think?

@kevinhughes27
Copy link
Copy Markdown
Contributor Author

Just came back to check on this and saw the build error, I fixed the problem, mix up between stable and development on my part.

@kevinhughes27
Copy link
Copy Markdown
Contributor Author

The build bot status hasn't updated here on GitHub but checking the logs and it looks like it builds fine now

@vpisarev
Copy link
Copy Markdown
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit 69c626e into opencv:master May 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants