-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.html
124 lines (119 loc) · 3.75 KB
/
default.html
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
<META NAME="description" CONTENT="Raspberry Pi Camera Server">
<META NAME="keywords" CONTENT="raspi, raspberry pi, camera, python">
<META NAME="Author" CONTENT="David Palmr">
<TITLE>Camera</TITLE>
<FORM NAME="camcontrols" ACTION="" METHOD="GET">
<label for="width">Width</label>
<INPUT NAME="width" type=text value=1600>
<label for="height">Height</label>
<INPUT NAME="height" type=text value=1200>
<br>
<label for="timeout">Timeout (ms)</label>
<INPUT NAME="timeout" type=text value=1000>
<label for="sharpness">Sharpness (-100 to 100)</label>
<INPUT NAME="sharpness" type=text value=0>
<label for="brightness">Brightness (0 to 100)</label>
<INPUT NAME="brightness" type=text value=50>
<br>
<label for="ISO">ISO</label>
<select NAME="ISO" value=200>
<option>100</option>
<option>200</option>
<option>400</option>
<option>800</option>
</select>
<label for="exposure">Exposure</label>
<select NAME="exposure" >
<option>auto</option>
<option>manual</option>
<option>night</option>
<option>nightpreview</option>
<option>backlight</option>
<option>spotlight</option>
<option>sports</option>
<option>snow</option>
<option>beach</option>
<option>verylong</option>
<option>fixedfps</option>
<option>antishake</option>
<option>fireworks</option>
</select>
<label for="shutter">Shutter speed (if manual uS below 330000)</label>
<br>
<INPUT NAME="shutter" type=text value=0>
<label for="awb">White Balance</label>
<select NAME="awb" >
<option>off</option>
<option>auto</option>
<option>sun</option>
<option>cloud</option>
<option>shade</option>
<option>tungsten</option>
<option>fluorescent</option>
<option>incandescent</option>
<option>flash</option>
<option>horizon</option>
</select>
<label for="imxfx">Image Effect</label>
<select NAME="imxfx" >
<option>none</option>
<option>negative</option>
<option>solarise</option>
<option>sketch</option>
<option>denoise</option>
<option>emboss</option>
<option>oilpaint</option>
<option>hatch</option>
<option>gpen</option>
<option>pastel</option>
<option>watercolour</option>
<option>film</option>
<option>blur</option>
<option>saturation</option>
<option>colourswap</option>
<option>washedout</option>
<option>posterise</option>
<option>colourpoint</option>
<option>colourbalance</option>
<option>cartoon</option>
</select>
<label for="metering">Meter mode</label>
<select NAME="metering" >
<option>average</option>
<option>spot</option>
<option>backlit</option>
<option>matrix</option>
</select>
</FORM>
<img name="camerapic" src="/camera?height=1200&width=1200">
<script type="text/javascript">
<!--
function reloadpic()
{
camurl = "/camera?height=" + document.camcontrols.height.value
+ "&width=" + document.camcontrols.width.value
+ "&timeout=" + document.camcontrols.timeout.value
+ "&sharpness=" + document.camcontrols.sharpness.value
+ "&brightness=" + document.camcontrols.brightness.value
+ "&ISO=" + document.camcontrols.ISO.value
+ "&awb=" + document.camcontrols.awb.value
+ "&imxfx=" + document.camcontrols.imxfx.value
;
if (document.camcontrols.exposure.value == "manual" && document.camcontrols.shutter.value > 0) {
camurl += "&shutter=" + document.camcontrols.shutter.value;
} else {
camurl += "&exposure=" + document.camcontrols.exposure.value
+ "&metering=" + document.camcontrols.metering.value;
}
document.images["camerapic"].src = camurl;
}
document.images["camerapic"].onload = reloadpic;
-->
</script>
</BODY>
</HTML>