You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# !/bin/bash
|
|
|
|
FOLDER="/home/ortion/Documents/projects/TensorBird/data/species_dataset/"
|
|
|
|
cd $FOLDER
|
|
N_FILES=`ls -ApR | grep -v /$ | wc -l`
|
|
i=0
|
|
for PHOTO in */*/*.jpg
|
|
do
|
|
i=$(($i+1))
|
|
BASE=`basename $PHOTO`
|
|
echo "convert $BASE $i/$N_FILES"
|
|
convert "$PHOTO" -resize 100x75 $PHOTO
|
|
done |