-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
60 lines (48 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prototype</title>
<script src="assets/tfjs.js"></script>
<script src="assets/facemesh.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<link rel="stylesheet" href="assets/css/main.css">
<script src="https://unpkg.com/@tensorflow-models/mobilenet"></script>
<script src="https://unpkg.com/@tensorflow-models/knn-classifier"></script>
</head>
<body>
<section class="padding-top-5">
<div>
<video id='input' width="320" height="240" autoplay muted playsinline class="disp" style="display:inline-block;"></video>
<span style="position:relative;display:inline-block;">
<span id='loadingicon' class="fa fa-spinner fa-spin spin-anim"></span>
<canvas id='output' width="320" height="240" class="disp"></canvas>
</span>
<span style="position:relative;display:inline-block;">
<span id='loadingicon2' class="fa fa-spinner fa-spin spin-anim"></span>
<canvas id='output2' width="320" height="240" class="disp"></canvas>
</span>
<!-- video id='input' width="320" height="240" autoplay muted playsinline class="disp" style="display:inline-block;"></video -->
</div>
<div id='init'>
<button onclick="start()">Initialize</button>
<p id='init-desc'></p>
</div>
<div id='reg' style="display: none;">
<button id="class-a">Register Person A</button>
<button id="class-b">Register Person B</button>
<button id="class-c">Register Person C</button>
<p>
When bounding-box is on person A/B/C click respective "register person" button multiple
times (10-20) with different poses of face to add more instances (gives high accuracy)
<br>
<b>Note: </b> Currently NOT using powerful backend in this prototype. Instead simple naive model is being used.
</p>
</div>
</section>
<script src="assets/modules/knn-transfer-learning.js"></script>
<script src="assets/modules/bbox.js"></script>
<script src="index.js"></script>
</body>
</html>