How can I rename, annotate name or save to sub-directory images in a folder following classification?

I am running a basic image classification model (trained on the teachable machine) but now want to be able to annotate the file names or move them to a sub directory based on the classification. I would prefer not to copy them.

1 Like

Thanks this helps me to explore further. I should have been clearer I working in p5.js so hoping for something compatible with javascript. I am used to working with processing so clearly missing a bunch of information on how directories and files work with javascript.

1 Like