How to write or save sequence of images in a folder using opencv in ubuntu using command line argument
How to write or save sequence of images in a folder using opencv?
I am trying to like this
imwrite( "/home/administrator/Desktop/bg_sub/%d.jpg", image );
but it is storing only one image. Please tell me what should I do now
Well that is because the imwrite function does not know on its own what he has to place at the %d counter. The suggestion of @thdrksdfthmn is indeed better and more stable.