-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (49 loc) · 1.23 KB
/
index.html
File metadata and controls
49 lines (49 loc) · 1.23 KB
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
<html>
<head>
<title>handpose plane game</title>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/handpose"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.114.0/build/three.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
#canvas-wrapper {
position: absolute;
top: 0;
left: 0;
z-index: 999;
}
#world {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
background: linear-gradient(#e4e0ba, #f7d9aa);
}
</style>
</head>
<body>
<div id="canvas-wrapper">
<canvas id="output" style="" width="320" height="250"></canvas>
<br />
<br />
<video
id="video"
playsinline
style="
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
width: auto;
height: auto;
visibility: hidden;
"
></video>
</div>
<div id="world"></div>
<script src="./js/game.js"></script>
<script src="./js/model.js"></script>
</body>
</html>