-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathindex.html
executable file
·76 lines (67 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Alexa Sign Language Translator</title>
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhaina" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="dist/build.js"></script>
</head>
<body>
<!-- The Modal -->
<div id="launchModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span id="close-modal">×</span>
<h2>Hey there!</h2>
</div>
<div class="modal-body">
<p>This project is an experiment that uses Tensorflow.js and your webcam to make Amazon Echo respond to sign language. It began with a simple question:</p>
<p><b><em>"If voice is the future of computing what about those who cannot hear or speak?"</em></b></p>
<p>You can find the code for this demo on <a href="https://github.com/shekit/alexa-sign-language-translator" target="_blank">github</a> or watch a <a href="https://www.youtube.com/watch?v=kS53y6GWm0w" target="_blank">video</a> of it in action.</p>
<p style="font-size:12px;"><em>Note: This demo runs entirely in your browser without any data sent to any server</em></p>
</div>
</div>
</div>
<div id="status">
<p id="status-text">Status: Not Ready</p>
</div>
<video id="video" src='' muted autoplay playsinline></video>
<div class="split-left">
<div class="centered">
<h1 id="text" class="intro-steps">Step 1: Enter Words<br><span class="subtext">Add a few words below. In the next step we'll associate each word with signs from the webcam</h1>
<div id="training-list">
<div id="example-list"></div>
<div id="add">
<form id="add-word" autocomplete="off">
<input type="text" id="new-word" placeholder="Add Training word">
<br/><br/>
<label>
<input type="checkbox" id="is-terminal-word">
Is terminal word?
</label>
<br/><br/>
<input type="submit" value="Add Word">
<p><b>Terminal Word</b> - A word that appears as the last word in your query</p>
<p>e.g If you intend to ask "What's <b><em>the weather</em></b>?" & "What's <b><em>the time</em></b>?" then <b><em>the weather</em></b> and <b><em>the time</em></b> are terminal words whereas <b><em>what's</em></b> is not</p>
</form>
</div>
<p id="count">Training: 2 words</p>
<div id="action-btn"></div>
</div>
</div>
</div>
<div class="split-right">
<div class="centered">
<div id="loader"></div>
<h1>
<span id="answerText"></span>
<span id="interimText"></span>
</h1>
</div>
</div>
</body>
</html>