-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDualCamera.html
69 lines (58 loc) · 2.47 KB
/
DualCamera.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>3D Webcam</title>
<link href="styles/Anaglyphs.css" rel="stylesheet" type="text/css">
<script src="scripts/Anaglyphs.js"></script>
<script src="scripts/Adapter.js"></script>
</head>
<body>
<script type="text/javascript" src="scripts/google.js"></script>
<div id="warning" name="warning"></div>
<table width="100%">
<tr><th colspan="3"><h1>3D Webcam</h1></th></tr>
<tr><td rowspan="2" id="canvasArea" class="white" align="center">
<canvas id="canvas">Canvas not supported</canvas></td>
<td id="previewArea" width="180px" height="180px">
<b>Left camera</b><br>
<select id="videoSource1"></select><br>
<video id="video1" name="video1" autoplay width="180" height="135"></video>
<div class="small" align="center" id="resolution1"></div></td>
<td id="previewArea" width="180px" height="180px">
<b>Right camera</b><br>
<select id="videoSource2"></select><br>
<video id="video2" name="video2" autoplay width="180" height="135"></video>
<div class="small" align="center" id="resolution2"></div></td></tr>
<tr><td colspan="2">
<div class="controls">
<b>Camera separation:</b>
<input type="range" value="0.1" min="0.0" max="0.4" step="0.001" id="xOffset">
</div>
<div class="controls">
<b>Contrast:</b>
<input type="range" value="0.0" min="-0.3" max="0.3" step="0.005" id="contrast">
</div>
<div class="controls">
<b>Title:</b><br>
<input type="text" name="title" id="title" value="" size="15">
</div></td></tr>
<tr><td id="message" class="message" align="center">
<b><div id="download" class="small"> </div></b></td>
<td colspan="2" valign="middle" height="10%"><input type="button" value="Take picture" id="snap">
</td>
</tr>
<tr><td colspan="3">
<p align="left" class="footer">© <a href="mailto:[email protected]">Thomas Proffen</a>, <span id="year"></span>.
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License"
style="border-width:0" align="right" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"/></a>
</p>
</td></tr>
</table>
<script src="scripts/DualCamera.js"></script>
<script>
document.getElementById("year").innerHTML = new Date().getFullYear();
</script>
</body>
</html>