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.

57 lines
1.3 KiB
Bash

8 years ago
# ensure the record folder exists
mkdir -p /var/www/static/gait
8 years ago
v=-v en-gb+f5 -s 150
espeak "Tetra Gamma Gait Analysis " -v en-gb +f5 -s 150
sleep 1
8 years ago
espeak "Be ready for the security check." -v en-gb+f4 -s 150
sleep 1
8 years ago
espeak "Please state your name:" -v en+f4 -s 150
8 years ago
sleep 1
8 years ago
espeak "Position yourself 2 to 3 meters away from me." -v en-gb+f4 -s 150
sleep 2
8 years ago
espeak "Walk towards me in a straight line ." -v en+f4 -s 150
8 years ago
sleep 0.2
8 years ago
mpv sweep_up.wav
8 years ago
8 years ago
basename=/var/www/static/gait/$(date +%Y-%m-%d-%H-%M-%S)
echo recording $basename.avi...
8 years ago
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
8 years ago
# rm $basename.avi
8 years ago
mpv sweep_up.wav
8 years ago
8 years ago
espeak "Walk towards me on a zig zag line.
" -v en+f4 -s175
8 years ago
sleep 0.2
8 years ago
mpv sweep_up.wav
8 years ago
basename=clips/$(date +%Y-%m-%d-%H-%M-%S)
echo recording $basename.avi...
8 years ago
python scripts/recordwalk.py --output $basename.avi --frames 50 --framerate 4 --width 320 --height 240
8 years ago
# 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
8 years ago
mpv sweep_up.wav
8 years ago
8 years ago
8 years ago
espeak "Thank you for your cooperation" -v en+f4 -s175
8 years ago
sleep 1
8 years ago
mpv sweep_up.wav