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.
54 lines
1.3 KiB
Bash
54 lines
1.3 KiB
Bash
v=-v en-gb+f5 -s 150
|
|
espeak "Tetra Gamma Gait Analysis " -v en-gb +f5 -s 150
|
|
sleep 1
|
|
|
|
espeak "Be ready for the security check." -v en-gb+f4 -s 150
|
|
sleep 1
|
|
|
|
espeak "Please state your name:" -v en+f4 -s 150
|
|
sleep 1
|
|
|
|
espeak "Position yourself 2 to 3 meters away from me." -v en-gb+f4 -s 150
|
|
sleep 2
|
|
|
|
espeak "Walk towards me in a straight line ." -v en+f4 -s 150
|
|
sleep 0.2
|
|
|
|
mpv sweep_up.wav
|
|
|
|
basename=clips/$(date +%Y-%m-%d-%H-%M-%S)
|
|
echo recording $basename.avi...
|
|
python scripts/recordwalk.py --output $basename.avi --frames 50 --framerate 4 --width 320 --height 240
|
|
# convert to mp4
|
|
ffmpeg -i $basename.avi -y $basename.mp4
|
|
# make a thumnail image
|
|
ffmpeg -i $basename.avi -vframes 1 -ss 0.5 -y $basename.jpg
|
|
# rm $basename.avi
|
|
|
|
mpv sweep_up.wav
|
|
|
|
espeak "Walk towards me on a zig zag line.
|
|
" -v en+f4 -s175
|
|
sleep 0.2
|
|
|
|
mpv sweep_up.wav
|
|
|
|
basename=clips/$(date +%Y-%m-%d-%H-%M-%S)
|
|
echo recording $basename.avi...
|
|
python scripts/recordwalk.py --output $basename.avi --frames 50 --framerate 4 --width 320 --height 240
|
|
# convert to mp4
|
|
ffmpeg -i $basename.avi -y $basename.mp4
|
|
# make a thumnail image
|
|
ffmpeg -i $basename.avi -vframes 1 -ss 0.5 -y $basename.jpg
|
|
# rm $basename.avi
|
|
|
|
mpv sweep_up.wav
|
|
|
|
|
|
|
|
espeak "Thank you for your cooperation" -v en+f4 -s175
|
|
sleep 1
|
|
|
|
mpv sweep_up.wav
|
|
|