upgrading testbed

This commit is contained in:
tth 2021-01-31 16:04:42 +01:00
parent 445ecf3600
commit fe51a26674

View File

@ -2,20 +2,16 @@
src=/dev/shm/foo.fimg src=/dev/shm/foo.fimg
out=out.fimg out=out.fimg
device=/dev/video2
<<<<<<< HEAD maxi=59
maxi=99
W="640"
H="480"
grabopt=" -s 640x480 -v -p 0 -n 150 -c cos01 -d /dev/video2 "
=======
maxi=249
W="320" W="320"
H="240" H="240"
grabopt=" -s ${W}x${H}w -vv -p 0 -n 60 -c none " grabopt=" -s ${W}x${H}w -vv -d $device -p 0 -n 30
>>>>>>> 423ab7f0eca3e74777b24f795fadf075c0066138 0 -c none "
mkdir /tmp/V mkdir /tmp/V
rm /tmp/V/*
G=$(printf "%dx%d+0+0" $W $H) G=$(printf "%dx%d+0+0" $W $H)
@ -27,15 +23,21 @@ do
grabvidseq -$grabopt -o $src grabvidseq -$grabopt -o $src
fval=$(echo "$foo / $maxi" | bc -l) fval=$(echo "$foo / $maxi" | bc -l)
./t -vv -k 0.333 -o $out classif $src echo $foo ' => ' $fval
./t -vv -k $fval -o $out classif $src
# fimgstats $out # fimgstats $out
echo $foo ' => ' $fval
dst=$(printf "/tmp/V/%03d.png" $foo) dst=$(printf "/tmp/V/%03d.png" $foo)
echo $dst echo $dst
montage $src $out -tile 1x2 -geometry $G $dst montage $src $out -tile 1x2 -geometry $G $dst
sleep 2
done done
convert -delay 10 /tmp/V/*.png foo.gif convert -delay 10 /tmp/V/*.png foo.gif
rm /tmp/V/*