From 6576356cb31cbdfb94e8d76fa2a6c8a6cbacc5e1 Mon Sep 17 00:00:00 2001 From: Fisch Date: Tue, 3 Dec 2024 11:24:13 +0100 Subject: [PATCH] use all png files --- imagegenerator/numbers/generatenumbers.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/imagegenerator/numbers/generatenumbers.sh b/imagegenerator/numbers/generatenumbers.sh index 7491c26..bda9c50 100644 --- a/imagegenerator/numbers/generatenumbers.sh +++ b/imagegenerator/numbers/generatenumbers.sh @@ -1,10 +1,12 @@ #!/bin/bash +#put this file in folder with number png files and run -i=0 -while [ $i -ne 10 ] +for i in elevatorInd_5x8/*.png do echo "$i" - python ../generate.py pzim3x5/$i.png -f nodered -o $i.txt - i=$(($i+1)) -done + filenamewopath=$(basename -- "$i") + filename="${filenamewopath%.*}" + echo "$filename" + python ../generate.py $i -f nodered -o $filename.txt +done \ No newline at end of file