title: OpenCV: Reading image series from a folder
body: <p>I am trying to read a series of images from a folder using OpenCV's <code>VideoCapture</code> function. After some search on the internet, my current code is like this: </p>
  
  <pre><code>cv::VideoCapture cap ( "C:\\Users\\Admin\\Documents\\Images\\%02d.jpg");
  </code></pre>
  
  <p>I was expecting to see that <code>VideoCapture</code> function should read all the images in that folder with names of two serial digits, like <code>01.jpg, 02.jpg, ..., 30.jpg</code>. Someone told on the internet that the <code>VideoCapture</code> function should be ale to catch all of these images once I give the first image's location and name. So I also tried to do it like this:</p>
  
  <pre><code>cv::VideoCapture cap ("C:\\Users\\Admin\\Documents\\Images\\01.jpg");
  </code></pre>
  
  <p>But still this is not working, at least not for my case here. These images are of different sizes, so I am going to read them first, resize them, and then do further processing on each of them. How can I do this? I am using Windows7, with VisualStudio. Thank you. </p>