-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathrun_extract_eyes.sh
46 lines (44 loc) · 1.02 KB
/
run_extract_eyes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#Input video name format:"test<Alert/Drowsy><test subject number>"
#Output video name format:"test<Alert/Drowsy><test subject number>"
i=1
#i=$(($i + 1))
#echo $i
#mkdir $i
mkdir Output
while [ $i -le $1 ]
do
#echo "ran"
#extract patches for alert subjects
mkdir Output/$i
mkdir Output/$i/Alert
echo "Alert $i"
python eyedetection.py 1 Input/$i/testAlert$i.avi ./ Output/$i/Alert/
#python eyedetection.py 1 Input/$i/ ./ $i/Alert/
#make dir i,i/alert,i/sleepy
#python eyedetection.py 1
i=$(($i + 1))
done
#python eyedetection.py 1 Input/$i.avi ./ $i/Alert/
i=1
#i=$(($i + 1))
#echo $i
#mkdir $i
while [ $i -le $1 ]
do
#echo "ran"
#extract patches for drowsy subjects
mkdir Output/$i/Drowsy
echo "Drowsy $i"
python eyedetection.py 1 Input/$i/testDrowsy$i.avi ./ Output/$i/Drowsy/
#make dir i,i/alert,i/sleepy
#python eyedetection.py 1
i=$(($i + 1))
done
# while [ $i -lt 10 ]
# do
# echo "ran"
# make dir i,i/alert,i/sleepy
# python eyedetection.py 1
# i=$(($i + 1))
# done
#python eyedetection.py