c++ - multiple image store kinect with different name -
i want know how change default save folder store differents images differents names
if store 1 image, //capture camera
while(1) { sprint(buffer, "/folder", i++); } and store correctly in different folder
while(1) { sprint(buffer, "%d", i++); } how combine them? thanks!
you can using following code:
char filename[500]; sprintf(filename,"./folderyouwanttosaveto/nameofimage%u.png",i++); imwrite(filename, imagetosave);
Comments
Post a Comment