-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo.html
31 lines (27 loc) · 1.11 KB
/
demo.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>
<!-- Load TensorFlow.js -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<!-- Load BodyPix -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/[email protected]"></script>
<link rel="stylesheet" href="static/css/webcam_style.css">
<link rel="stylesheet" href="static/css/slider_style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151991447-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-151991447-1');
</script>
</head>
<body>
<div class="loader" id="loader"></div>
<div class="slidecontainer">
<input type="range" min="1" max="100" value="50" class="slider" id="segmentationRange">
</div>
<video autoplay playsinline muted hidden id="webcam" width="640" height="480" ></video>
<canvas id="canvas"></canvas>
</body>
<script src="static/js/webcam.js"></script>
</html>