-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
74 lines (59 loc) · 2.22 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'" />
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'" />
<title>Center Stage</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div class="container">
<div class="inputs">
<!-- Choose your camera -->
<div class="input-group">
<label for="camera-select">Camera:</label>
<select id="camera-select"></select>
</div>
<!-- Choose your microphone -->
<div class="input-group">
<label for="microphone-select">Microphone:</label>
<select id="microphone-select"></select>
</div>
</div>
<!-- Zoom slider -->
<div class="input-group">
<label for="zoom-slider">Zoom: <span id="zoom-slider-value"></span></label>
<input type="range" id="zoom-slider" min="0" max="1" step="0.01" value="0" />
</div>
<!-- Tracking speed slider -->
<div class="input-group">
<label for="tracking-speed-slider">Tracking speed: <span id="tracking-speed-slider-value"></span></label>
<input type="range" id="tracking-speed-slider" min="0.0" max="3" step="0.001" value="0.025" />
</div>
<!-- Face percentage slider -->
<div class="input-group">
<label for="face-percentage-slider">Face percentage: <span id="face-percentage-slider-value"></span></label>
<input type="range" id="face-percentage-slider" min="0.0" max="1.0" step="0.001" value="0.5" />
</div>
<!-- Display the sound response of the microphone input -->
<div id="sound-level">
<div id="sound-level-value"></div>
</div>
<!-- Display the video element -->
<div id="video-container">
<video id="video" autoplay muted></video>
</div>
<!-- Run on startup checkbox -->
<input type="checkbox" id="run-on-startup" />
<label for="run-on-startup">Run on startup</label>
<!-- Flip video preview checkbox -->
<input type="checkbox" id="flip-video-preview" />
<label for="flip-video-preview">Flip video preview</label>
<!-- Button to start stream -->
<button id="preview">Start Stream</button>
</div>
</body>
<script defer src="face-api.min.js"></script>
<script defer src="auxiliary.js"></script>
</html>