I would just put the code that I show in the program inside a function that receives the name of the file to process and the folder as parameters, and then, outside the loop, write a loop that "walks" your folder with all the files, and for each file it finds, it would call the function, passing it the file name and folder names as parameters. See stackoverflow.com/questions/4582550/file-walking-in-python for an example of what I mean.
very educative.
Excellent. But how to do it on a whole directory of images?
I would just put the code that I show in the program inside a function that receives the name of the file to process and the folder as parameters, and then, outside the loop, write a loop that "walks" your folder with all the files, and for each file it finds, it would call the function, passing it the file name and folder names as parameters. See stackoverflow.com/questions/4582550/file-walking-in-python for an example of what I mean.
@@dominiquethiebaut718 Thanks for answering... and for the link. I will check it out!
Very useful! Your video do help me a lot!❤