hi i am working in opencv in linux. i am having a folder containing images. how to store all the image locations in a text file and use the image one by one for processing
you can use system() to call any system command from your code. First list all the files present in a folder and then store that result into a file and then read that file line bye line.
Another way would be to use popen to issue the ls command and you can create the file from your program itself. The advantage with popen is that you get the output of unix command you executed back to your program, unlike system