-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoto-shooting.sh
More file actions
70 lines (59 loc) · 2.18 KB
/
foto-shooting.sh
File metadata and controls
70 lines (59 loc) · 2.18 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
foldername=~/$1
filesuffix=jpg
raspistill="raspistill -v --nopreview"
logfile=${foldername}/shooting.log
mkdir $foldername
# normal
$raspistill -o $foldername/normal.$filesuffix &>>${logfile}
# Autwo wite balance
$raspistill -o $foldername/awb-auto.$filesuffix --awb auto &>>${logfile}
$raspistill -o $foldername/awb-sun.$filesuffix --awb sun &>>${logfile}
$raspistill -o $foldername/awb-off.$filesuffix --awb off &>>${logfile}
$raspistill -o $foldername/awb-flash.$filesuffix --awb flash &>>${logfile}
$raspistill -o $foldername/awb-horizon.$filesuffix --awb horizon &>>${logfile}
$raspistill -o $foldername/awb-incandescent.$filesuffix --awb incandescent &>>${logfile}
# greyscale
$raspistill -o $foldername/greyscale128128.$filesuffix -cfx 128:128 &>>${logfile}
# Kontrast
for count in {-5..5}
do
((param=$count*20))
((fileprefix=$count+15))
${raspistill} -o ${foldername}/contrast_${fileprefix}_${param}.${filesuffix} --contrast ${param} &>>${logfile}
done
# Brightness
# for count in {1..4}
# do
# ((param=$count*20))
# ((fileprefix=$count+10))
# ${raspistill} -o ${foldername}/brightness_${fileprefix}_${param}.${filesuffix} --brightness ${param} &>>${logfile}
# done
# Saturation
# for count in {-5..5}
# do
# ((param=$count*20))
# ((fileprefix=$count+15))
# ${raspistill} -o ${foldername}/saturation_${fileprefix}_${param}.${filesuffix} --saturation ${param} &>>${logfile}
# done
# Kontrast and Greyscale
for count in {-5..5}
do
((param=$count*20))
((fileprefix=$count+15))
${raspistill} -o ${foldername}/greyscaleandcontrast_${fileprefix}_${param}.${filesuffix} --contrast ${param} -cfx 128:128 &>>${logfile}
done
# Kontrast and Greyscale And Quality 75
for count in {-5..5}
do
((param=$count*20))
((fileprefix=$count+15))
${raspistill} -o ${foldername}/greyscaleandcontrast_quality75_${fileprefix}_${param}.${filesuffix} --contrast ${param} -cfx 128:128 --quality 75 &>>${logfile}
done
# Kontrast and Greyscale And Quality 50
for count in {-5..5}
do
((param=$count*20))
((fileprefix=$count+15))
${raspistill} -o ${foldername}/greyscaleandcontrast_quality50_${fileprefix}_${param}.${filesuffix} --contrast ${param} -cfx 128:128 --quality 50 &>>${logfile}
done