premier commit post-mercredi - UDMH 2020
This commit is contained in:
20
scripts/contrast-test.sh
Executable file → Normal file
20
scripts/contrast-test.sh
Executable file → Normal file
@@ -2,11 +2,15 @@
|
||||
|
||||
CMDPATH="/usr/local/bin"
|
||||
|
||||
GRAB="quux.fimg"
|
||||
COS01="cos01.fimg"
|
||||
COS010="cos010.fimg"
|
||||
SQRT="sqrt.fimg"
|
||||
POW2="pow2.fimg"
|
||||
WS="./tmp" # our workspace
|
||||
|
||||
GRABOPT=" -d /dev/video0 -vu -n 240 -p 0.04 "
|
||||
|
||||
GRAB=${WS}/"quux.fimg"
|
||||
COS01=${WS}/"cos01.fimg"
|
||||
COS010=${WS}/"cos010.fimg"
|
||||
SQRT=${WS}/"sqrt.fimg"
|
||||
POW2="${WS}/pow2.fimg"
|
||||
|
||||
# --------- conversion fimg -> pnm
|
||||
f2p ()
|
||||
@@ -17,11 +21,13 @@ ${CMDPATH}/fimg2pnm $1 $dst
|
||||
}
|
||||
|
||||
# --------- capturer une image
|
||||
${CMDPATH}/grabvidseq -v -u -n 2400 -p 0.04 -o ${GRAB}
|
||||
#
|
||||
${CMDPATH}/grabvidseq ${GRABOPT} -o ${GRAB}
|
||||
echo ERRCODE $?
|
||||
f2p ${GRAB}
|
||||
|
||||
# ----------- traitements
|
||||
#
|
||||
${CMDPATH}/fimgfx pow2 $GRAB $POW2
|
||||
f2p $POW2
|
||||
|
||||
@@ -34,5 +40,7 @@ f2p $COS01
|
||||
${CMDPATH}/fimgfx cos010 $GRAB $COS010
|
||||
f2p $COS010
|
||||
|
||||
# ----------- présentation finale
|
||||
#
|
||||
echo == Making gif89a
|
||||
convert -delay 40 *.pnm foo.gif
|
||||
|
||||
Reference in New Issue
Block a user