Suppose I have 7 numbers of ".jpg" files in a folder. All the names are numeric that is 0.jpg, 4.jpg, 1.jpg etc.
How to read the files sequentially according to there name incrementally. That is first 0.jpg then 1.jpg then 4.jpg will be read.
I have tried with glob( ) function but image read is not sequentially..
#include
#include
#include
using namespace std;
using namespace cv;
int main()
{
String folder = "*.jpg";
vector filenames;
glob(folder, filenames);
cout<
↧