-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (60 loc) · 1.93 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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css">
</head>
<style>
body {
margin: 25px;
}
#main {
position: relative;
margin: 50px 0;
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#description {
margin-top: 20px;
width: 600px;
}
#description-title {
font-weight: bold;
font-size: 18px;
}
</style>
<div class="container is-widescreen">
<article id="vidarticle" class="message">
<div id="message" class="message-header" style="transition: background-color 1s ease-out">
<p>Looking....</p>
</div>
<div class="message-body">
<div id="main" style="display:flex; justify-content: center; flex-direction: column">
<video id="video" playsinline style="
-webkit-transform: scaleX(-1);
display: flex;
transform: scaleX(-1);
width: auto;
height: auto;
">
</video>
<div id="pred" style="visibility: hidden;"></div>
<canvas id="face" style="position: absolute; top: 500; border: solid red 3px; visibility: hidden;"></canvas>
<canvas id="output"></canvas>
<canvas id="videostream" style="visibility: hidden"></canvas>
</div>
</div>
</article>
</div>
</body>
<script src="script.js"></script>
</html>