-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (100 loc) · 3 KB
/
index.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>PoseNet - Camera Feed Demo</title>
<meta http-equiv="content-type" content="txt/html; charset=utf-8" />
<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;
}
}
/*
* The following loading spinner CSS is from SpinKit project
* https://github.com/tobiasahlin/SpinKit
*/
.sk-spinner-pulse {
width: 20px;
height: 20px;
margin: auto 10px;
float: left;
background-color: #333;
border-radius: 100%;
-webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
animation: sk-pulseScaleOut 1s infinite ease-in-out;
}
@-webkit-keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
@keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
.spinner-text {
float: left;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="info" style='display:none'>
</div>
<div id="loading" style='display:flex'>
<div class="spinner-text">
Loading PoseNet model...
</div>
<div class="sk-spinner sk-spinner-pulse"></div>
</div>
<div id='main' style='display:none'>
<video id="video" playsinline style="display: none;">
</video>
<canvas id="output" />
</div>
<div>
<input type="number" min="0" value="10" id="sittotalsecond" /><br>
左:<input type="radio" checked value="1" name="side" />
右:<input type="radio" value="2" name="side" /><br>
静坐检测:<input type="radio" checked value="1" name="type" />
高抬腿检测:<input type="radio" value="2" name="type" /><br>
</div>
<div>
<input type="button" id="begin" value="开始" />
<input type="button" id="end" value="结束" />
</div>
<div id="getinbox" style="display: none;color: red;">
有人进入!!!
</div>
<div >高抬腿次数:<span id="taitui"></span></div>
<div id="msgbox">
</div>
<script src="camera.js"></script>
</body>
</html>