Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I guess the simplest way would be some while or for loop and put some sleep at the end of the loop, so that it wait until the next execution.

For the different images, you could do it like this. Take a simple image name and always concatenate it with a number in every loop. You could use the loop variable i or just increase an int after every loop.

Could look like this in c++:

char *imageName = "image"; char *jpgN = ".jpg"; stringstream s; s << theString << i << jpgN;

Then you can use imwrite (s.str(), image);

I guess the simplest way would be some while or for loop and put some sleep at the end of the loop, so that it wait until the next execution.

For the different images, you could do it like this. Take a simple image name and always concatenate it with a number in every loop. You could use the loop variable i or just increase an int after every loop.

Could look like this in c++:

 char *imageName = "image";
"image";
char *jpgN = ".jpg";
 stringstream s;
 s << theString << i << jpgN;

jpgN;

Then you can use imwrite (s.str(), image);

I guess the simplest way would be some while or for loop and put some sleep at the end of the loop, so that it wait until the next execution.

For the different images, you could do it like this. Take a simple image name and always concatenate it with a number in every loop. You could use the loop variable i or just increase an int after every loop.

Could look like this in c++:

    char *imageName = "image"; 
    char *jpgN = ".jpg";
    stringstream s;
    s << theString imageName << i << jpgN;

Then you can use imwrite (s.str(), image);