Currently, when the input folder contains no images with valid file extensions (.tif, .jpg, .TIF, .JPG), the following error is thrown:
AttributeError: Can only use .str accessor with string values!
This is not helpful to the user. It would be better to catch this error, and output an error message like:
No images of supported types (.tif/.jpg) found in input directory or its sub-directories.
Currently, when the input folder contains no images with valid file extensions (.tif, .jpg, .TIF, .JPG), the following error is thrown:
AttributeError: Can only use .str accessor with string values!This is not helpful to the user. It would be better to catch this error, and output an error message like:
No images of supported types (.tif/.jpg) found in input directory or its sub-directories.