-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·65 lines (57 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<script src="dist/face-api.js"></script>
<script src="public/commons.js"></script>
<script src="lib/p5.js"></script>
<script src="lib/p5.dom.js"></script>
<script src="lib/p5.sound.js"></script>
<script src="lib/p5.play.js"></script>
<link rel="stylesheet" href="public/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"> </script>-->
</head>
<body>
<div id="navbar"></div>
<div>
<div class="progress" id="loader">
<div class="indeterminate"></div>
</div>
<h5 >
<span id="status">Model Loading ...</span>
</h5>
<div style="position: relative" id="parent">
<video onplay="onPlay(this)" id="inputVideo" autoplay muted></video>
<canvas id="overlay" />
<canvas id='canvas' />
</div>
<div id="face"></div>
</div>
<style>
body {
background: #7c7c7c;
}
#status {
font-family: Geneva, Tahoma, Verdana, sans-serif;
font-size: 12px;
}
.inline {
display: inline-block;
}
#parent {
margin-left: 30px;
z-index: 999;
}
#face {
z-index: 1;
position: fixed;
top: 30px;
left: 30px;
}
</style>
<script src="index.js"></script>
</body>
</html>