I'm working on preprocessing images for a semantic segmentation task and have two folders with identically named images (one of the images in colour, and the other that have been colour coded for the objects I'm trying to identify). Would anyone be able to help me with a bash script that allows me to find all the images that are completely black in the mask folder, and delete those and their corresponding image from the other.

I believe most similar questions use imagemagick and identify but I'm still new to Linux as a whole and would really appreciate help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.