forked from roshanprabhakar/digital-puppetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
animator.html
73 lines (67 loc) · 2.23 KB
/
animator.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
<!DOCTYPE html>
<html>
<head>
<title>PoseNet - Camera Feed Demo</title>
<link rel="stylesheet" href="./camera.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="info" style='display:none'>
</div>
<div id="loading" style='position: relative; left: 0'>
<span class="spinner-text" id="status">
Loading PoseNet model...
</span>
<div class="sk-spinner sk-spinner-pulse"></div>
</div>
<div id="video-container">
<!--<video id="source-video" autoplay playsinline></video>-->
<div class="canvas-container">
<div id='main' style='display:none'>
<video id="video" playsinline style=" -moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
display: none;
">
</video>
<canvas id="output" class="camera-canvas"></canvas>
<canvas id="keypoints" class="camera-canvas"></canvas>
</div>
<canvas class="illustration-canvas"></canvas>
</div>
</div>
<!--<div class="footer">-->
<!-- <div class="footer-text">-->
<div id="stats-box">
<!-- <p>
<label for="bandwidth_input"><strong>Set max bitrate (kb/s):</strong> (can set to unlimited)</label>
<input id="bandwidth_input" type="text" /> <input id="bandwidth_button" type="submit" />
</p>
-->
<p id="bitstream-box"></p>
<!--
<p id="bitratelimit-box"></p>
-->
<!--
<p id="latency-box" style="width: 100%; min-height: 100px; text-align: center; padding: -10px">Stats</p>
-->
</div>
<!-- </div>-->
<!--</div>-->
<div class="controlbox">
<button id="connectButton" name="connectButton" class="buttonleft">
Connect
</button>
<br>
<p id="total-latency" style="color:black"></p>
<p id="transmission-latency" style="color:black"></p>
<p id="extraction-latency" style="color:black"></p>
<p id="projection-latency" style="color:black"></p>
<p id="warningDoNotTransmit" style="color:red"></p>
<p id="warningDataChannel" style="color:red"></p>
<p id="warningWebSocket" style="color:red"></p>
</div>
<script src="camera.js"></script>
</body>
</html>