-
Notifications
You must be signed in to change notification settings - Fork 9
/
live_stream.html
219 lines (201 loc) · 6.71 KB
/
live_stream.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<title>AIDEN</title>
<style>
div.scrollmenu {
background-color: rgb(201, 201, 201);
overflow: auto;
white-space: nowrap;
}
div.scrollmenu a {
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;
}
div.scrollmenu a:hover {
background-color: #777;
}
div.scrollmenu a:active {
background-color: #777;
}
</style>
<!-- FontAwesome -->
<script
src="https://kit.fontawesome.com/dbea95f351.js"
crossorigin="anonymous"
></script>
<!-- Tensorflow.js -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-pose.min.js"></script>
<style>
.container {
max-width: 100%;
}
#ifr {
position: absolute;
float: left;
clear: both;
width: 100%;
height: 100%;
z-index: 0;
left: no-repeat;
}
</style>
</head>
<body>
<!-- Heading -->
<iframe src="view2.html" id="ifr"></iframe>
<!-- Camera / Selector Split -->
<div class="container">
<div class="row" style="padding-top: 20px;">
<!-- Camera -->
<div class="col-8" id="Camera">
<canvas id="canvas" style="max-width: 100%;"></canvas>
</div>
<!-- Selector Split -->
<div class="col-4" id="Selector">
<!-- Card -->
<div class="card border-info mb-3" style="max-width: 18rem;">
<button
type="button"
class="btn btn-success btn-lg btn-block"
onclick="init(0)"
>
Start
</button>
<div class="card-body text-info">
<div id="label-container"></div>
<div style="display: none;" id="filler-label-container">
<div class="progress">
<div
class="progress-bar progress-bar-striped}"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
<br />
<div class="progress">
<div
class="progress-bar progress-bar-striped}"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
<br />
<div class="progress">
<div
class="progress-bar progress-bar-striped}"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
<br />
<div class="progress">
<div
class="progress-bar progress-bar-striped}"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
</div>
</div>
<div
class="card-footer bg-transparent border-info text-info"
id="footer"
>
Status:
</div>
<div
class="card-footer bg-transparent border-info text-info"
id="speech"
>
<i style="color: black;">Say "begin exercises"</i>
</div>
<div id="sequence">
<!-- <div class="scrollmenu">
<a href="#BackBend" id="stretch1" >Back Bend</a>
<a href="#Lunge" id="stretch1" >Lunge Rotate</a>
<a href="#calf" id="stretch3" >Calf Tense</a>
<a href="#about" id="stretch4">Shoulder Relax</a>
<a href="#support">Neck Soother</a>
<a href="#blog">Ankle Rolling</a>
<a href="#base">Chest Expand</a>
</div> -->
</div>
</div>
</div>
</div>
</div>
<script>
document.getElementById("sequence").innerHTML = `<div class="scrollmenu">
<a href="#BackBend" id="stretch1" >Back Bend</a>
<a href="#Lunge" id="stretch2" >Lunge Rotate</a>
<a href="#calf" id="stretch3" >Calf Tense</a>
<a href="#about" id="stretch4">Shoulder Relax</a>
<a href="#support">Neck Soother</a>
<a href="#blog">Ankle Rolling</a>
<a href="#base">Chest Expand</a>
</div>`;
</script>
<script
type="text/javascript"
src="https://www.botlibre.com/scripts/sdk.js"
></script>
<script type="text/javascript">
SDK.applicationId = "3194419546458234738";
var sdk = new SDKConnection();
var web = new WebAvatar();
web.connection = sdk;
web.avatar = "792824";
web.voice = "cmu-bdl-hsmm";
web.voiceMod = "default";
web.nativeVoice = true;
web.nativeVoiceName = "Daniel";
web.width = "300";
web.createBox();
web.addMessage("Hello, my name is AIDEN. I'll be your physio assistant.");
web.processMessages();
</script>
<script src="./index.js"></script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
</body>
</html>