cv::VideoCapture can handle image sequences but this feature is not documented (Patch #2288)


Added by Kevin Hughes over 12 years ago. Updated over 11 years ago.


Status:Done Start date:2012-08-21
Priority:Low Due date:
Assignee:- % Done:

100%

Category:samples
Target version:- Estimated time:1.00 hour
Affected version:branch 'master' (2.4.9) Operating System:Any
Difficulty:Easy HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/1166

Description

It is common for computer vision data sets to be distributed as a series of images rather than a video file. cv::VideoCapture has the functionality to read this sequences like a video. I think a sample program demonstrating this use would be helpful and hopefully users will see this and not waste time writing their own image sequence readers.


starter_image_sequence_reader.cpp - proposed sample file (1.7 kB) Kevin Hughes, 2012-08-21 04:49 am


Associated revisions

Revision f33fe94c
Added by Steven Puttemans over 11 years ago

Added the sample from patch #2288 : reading in sequence of images

Added bugfixes
- Changed CV_WINDOW_NORMAL to 1
- Changed the help function to static
- Added extra help information on mask specifics

Revision feed2c07
Added by Roman Donchenko about 11 years ago

Merge pull request #2288 from asmorkalov:android_project_properties_generation_fix

History

Updated by Andrey Kamaev over 12 years ago

  • Assignee changed from Kevin Hughes to Vadim Pisarevsky
  • Priority changed from Normal to Low

Updated by Andrey Kamaev over 12 years ago

  • Target version changed from 2.4.3 to 3.0

Updated by Steven Puttemans over 11 years ago

I agree that how more samples there are available, the better. I will take this as my next pull request, adding the source code of your sample, updating documentation, and so on.

Question, is this also provided in openCV2.4.6? Or only on the master branch?

Updated by Steven Puttemans over 11 years ago

Documentation of master already has this functionality.

Parameters:

filename – name of the opened video file (eg. video.avi) or image sequence (eg. img%02d.jpg)

Guess this answers to where the functionality is available. Will add the sample code to master branch.

Updated by Steven Puttemans over 11 years ago

A pull request had been added : https://github.com/Itseez/opencv/pull/1166

Updated by Kirill Kornyakov over 11 years ago

  • HW Platform set to Any
  • Operating System set to Any
  • Pull request set to https://github.com/Itseez/opencv/pull/1166
  • Difficulty set to Easy
  • Affected version set to branch 'master' (2.4.9)

Updated by Steven Puttemans over 11 years ago

Pull request merged. New sample code added to master branch.

  • Assignee deleted (Vadim Pisarevsky)
  • % Done changed from 80 to 100
  • Status changed from Open to Done

Updated by Steven Puttemans over 11 years ago

  • Target version deleted (3.0)

Also available in: Atom PDF