0

I need to process many images from a certain folder with my opencv algorithm, but i don't know how. The steps would need to be like this:

  1. Read and process the first image;
  2. After processing it, take this image off this folder and put it into a "processed images" folder. The results would be saved in another folder. Each image would have to have a name like "img001, img002" and so on.
  3. Repeat everything until the main folder is empty.
2

1 Answer 1

1

For list of files look at this. Moving files or deleting it is more complex problem as there is no simple solution (is OS dependent) but you can use boost::filesystem::rename and boost::filesystem::remove or std::rename and std::remove.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.