Automatic commit. Fri Sep 21 00:00:13 WST 2012
[matches/honours.git] / research / TCS / pressure / get_pressure.sh
index f7aa8b5..d02e2f6 100755 (executable)
@@ -7,7 +7,7 @@ process_digits=/home/sam/Documents/University/honours/research/TCS/pressure/proc
 
 mkdir -p $imgdir 2>/dev/null
 name=$(date +%F-%H%M%S.jpg)
-fswebcam --device /dev/video0 -r 640x480 --jpeg 85 $imgdir/$name 2>/dev/null # NOTE: Need to make sure we use the right /dev/videoX
+fswebcam --device /dev/video1 -r 640x480 --jpeg 85 $imgdir/$name 2>/dev/null # NOTE: Need to make sure we use the right /dev/videoX
                                                                                # Otherwise images may come from the laptop's shitty inbuilt webcam
 
 $get_digits $imgdir/$name $imgdir/$name 2>/dev/null
@@ -28,5 +28,5 @@ while [ "$out" == "?" ]; do
                exit 0
        fi
 done
-rm -f $imgdir/$name
+#rm -f $imgdir/$name
 echo $out

UCC git Repository :: git.ucc.asn.au