1 | initial version |
That's an interesting feature in OpenCV, so bad it's not documented.
I've spent some hours trying to figure it out, some time ago. But this is how you should use it:
VideoCapture cap("c:/fullpath/%03d.png");
Supposing your images are 001.png, 002.png, etc. You can also use something like
VideoCapture cap("c:/fullpath/Image_%03d.png"); // for Image_001.png, etc
If your files are 1.png, 2.png, ..., 10.png, ...101.png, you have to convert them to a proper naming format, all having the same number of digits in name. Total Commander (Multi-rename) for Windows and any command line utility in Linux wil do the job for you.
2 | No.2 Revision |
That's an interesting feature in OpenCV, so bad it's not documented.
I've spent some a few hours trying to figure it out, some time ago. But this is how you should use it:
VideoCapture cap("c:/fullpath/%03d.png");
Supposing your images are 001.png, 002.png, etc. You can also use something like
VideoCapture cap("c:/fullpath/Image_%03d.png"); // for Image_001.png, etc
If your files are 1.png, 2.png, ..., 10.png, ...101.png, you have to convert them to a proper naming format, all having the same number of digits in name. Total Commander (Multi-rename) for Windows and any command line utility in Linux wil do the job for you.