-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (46 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<link>
<meta charset="UTF-8">
<title>Facemesh testing</title>
<head>
<!-- Require the peer dependencies of face-landmarks-detection. -->
<script src="https://unpkg.com/@tensorflow/[email protected]/dist/tf-core.js"></script>
<script src="https://unpkg.com/@tensorflow/[email protected]/dist/tf-converter.js"></script>
<!-- You must explicitly require a TF.js backend if you're not using the tfjs union bundle. -->
<script src="https://unpkg.com/@tensorflow/[email protected]/dist/tf-backend-webgl.js"></script>
<!--script src="https://unpkg.com/@tensorflow/[email protected]/dist/tf-backend-wasm.js"></script-->
<!--script src="https://unpkg.com/@tensorflow/[email protected]/dist/tf-backend-cpu.js"></script-->
<!-- Require face-landmarks-detection itself. -->
<script src="https://unpkg.com/@tensorflow-models/[email protected]/dist/face-landmarks-detection.js"></script>
<!-- KNN classifier -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/knn-classifier"></script>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<!--script src="statusLight.js"></script-->
</head>
<body>
<div id="controls">
<button id="correct" hidden>Correct Place to Look</button>
</div>
<div>
<video autoplay muted playsinline hidden></video>
<canvas></canvas>
</div>
<div>
<span id="instructions">Wait a moment while facemesh loads</span>
<button id="start" hidden>Start</button>
<br/>
<input type="checkbox" id="hid" name="hid" checked>
<label for="hid">Status light indicator</label>
<br/>
<span id="samples">Samples: 0</span>
<br/>
<span id="probability">Collect samples to calculate</span>
</div>
<div class="bottom">
<button id="incorrect" hidden>Incorrect place to look</button>
</div>
<script src="js/embrava.js"></script>
<script src="js/lookatcamera.js"></script>
</body>
</html>