-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·85 lines (69 loc) · 2.1 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
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"><html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="css/main.css">
<title></title>
</head>
<body>
<div id="container">
<header></header>
<main>
<video id="myVideo">
<source id="mp4_src" src="img/eyeStrain.mp4" type="video/mp4">
</video>
<button onclick="button_callback()" type="button">Start Webcam</button>
<div>
<p><center><canvas width=640 height=480></canvas></center></p>
</div>
<!-- Search Form Google -
<form id="labnol" method="#" action="#">
<div class="speech">
<input id="textBox" type="text" name="q" id="transcript" placeholder="Ask me something" />
<img id="simulateClick" onclick="button_callback()" onclick="startDictation()" src="img/lexusLogoBug.png" />
</div>
<div>
<p><center><canvas width=640 height=480></canvas></center></p>
</div>
</form> -->
</main>
<footer></footer>
</div>
<!--end container-->
<script src="js/personDetectionVideo.js"></script>
<script src="js/camvas.js"></script>
<script src="js/pico.js"></script>
<script src="js/lploc.js"></script>
<!-- HTML5 Speech Recognition API
<script>
function startDictation() {
if (window.hasOwnProperty('webkitSpeechRecognition')) {
var recognition = new webkitSpeechRecognition();
recognition.continuous = false;
recognition.interimResults = false;
recognition.lang = "en-US";
recognition.start();
console.log("start");
recognition.onresult = function(e) {
document.getElementById('transcript').value
= e.results[0][0].transcript;
recognition.stop();
console.log("stop");
//location.reload();
setTimeout(function(){
document.getElementById("labnol").reset();
}, 6000);
//console.log("reload");
//document.getElementById('labnol').submit();
};
recognition.onerror = function(e) {
recognition.stop();
}
}
}
</script> -->
</body>
</html>