-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd.html
31 lines (25 loc) · 1.16 KB
/
d.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
<html>
<head>
<script type="text/javascript" src="https://unpkg.com/@tensorflow/tfjs"></script>
<script type="text/javascript" src="https://unpkg.com/@tensorflow-models/posenet"></script>
<script type="text/javascript" src="https://unpkg.com/pts/dist/pts.js"></script>
<script type="text/javascript" src="./js/bodypose.js"></script>
<style type="text/css">
body { margin: 0; padding: 0px; font-family: sans-serif; }
#pts { position: relative; width: 640px; height: 480px; }
#pts > canvas { position: absolute; z-index: 2; }
#video { position: absolute; top: 0; left: 0; display: none; }
small { color: #abc; font-size: 11px;}
</style>
</head>
<body>
<div id="pts">
<video id="video" width="640" height="480" muted autoplay><source src="test_video.mp4" type="video/mp4" codec="avc1.4D401E" /></video>
</div>
<p><small>Add one video to the source code folder. We use this one here for testing: https://www.youtube.com/watch?v=gADY77Jy2-Q</small></p>
<script type="text/javascript" src="./js/d.js"></script>
<script>
document.getElementById('video').play();
</script>
</body>
</html>