-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamera.html
80 lines (72 loc) · 2.44 KB
/
camera.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
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>SmartGym</title>
<style>
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: black;
}
.footer-text {
max-width: 600px;
text-align: center;
margin: auto;
}
@media only screen and (max-width: 600px) {
.footer-text, .dg {
display: none;
}
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="info" style='display:none'>
</div>
<div id="loading">
Loading the model...
</div>
<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" style="/* transform: rotate(90deg); */left: 58px;/* position: absolute; */"/>
</div>
<div>
<br/><br/><br/><br/>
<p id="score" style="
border: 3px solid black;
color: black;
margin: 5px;
text-align: center;
padding: 10px;
font-size: 59px;
color: green;
transform: rotate(90deg);
position: absolute;
left: 435px;
top: 418px;
"> </p>
<div style="width: 600px;margin: 0 auto;transform: rotate(90deg);"><span style="border: 3px solid black;color: black;margin: 5px;text-align: center;padding: 5px;font-size: 72px;color: red;transform: rotate(90deg);" id="suggestion">Suggestion</span></div>
</div>
<!-- <video id="video2" src="" autoplay="true"></video>
<div class="footer">
<div class="footer-text">
<p>
PoseNet runs with either a <strong>single-pose</strong> or <strong>multi-pose</strong> detection algorithm. The single person pose detector is faster and more accurate but requires only one subject present in the image.
<br>
<br> The <strong>output stride</strong> and <strong>image scale factor</strong> have the largest effects on accuracy/speed. A <i>higher</i> output stride results in lower accuracy but higher speed. A <i>higher</i> image scale factor results in higher accuracy but lower speed.
</p>
</div>
</div> -->
<canvas id='cv2' style="display: none"/>
<script src="camera.js"></script>
<audio src="hipsdown.mp4" id='hipsdownaudio'></audio>
</body>
</html>