-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (48 loc) · 1.75 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 lang="en">
<head>
<!--Load TensorFlow FaceMesh-->
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh"></script>
<!--Load TensorFlow Core-->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
<!-- You must explicitly require a TF.js backend if you're not using the TF.js union bundle. -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/face-landmarks-detection"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.6/dat.gui.min.js"></script>
<!-- Required External Libraries -->
<script src="../js/jquery-3.2.1.min.js"></script>
<script src="../js/stats.js"></script>
<!-- Custom CSS -->
<link id = "css" rel="stylesheet" href="../css/index.css">
</head>
<body id="body">
<div id="container">
<video id="video" playsinline style="
visibility: hidden;
width: auto;
height: auto;
">
</video>
<canvas id="cropped-video"></canvas>
<canvas id="formatted-video"></canvas>
</div>
<div class="canvas-wrapper">
<video id="video" playsinline style="
visibility: hidden;
width: auto;
height: auto;
">
</video>
<canvas id="cropped-video"></canvas>
</body>
<!-- Loading Params -->
<script src="../js/params.js"></script>
<script src="../js/gui.js"></script>
<script src="../js/camera.js"></script>
<script src="../js/artwork.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
main()
});
</script>
</html>