-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (81 loc) · 4.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Font_4i</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<img src="./logo.jpeg" alt="" style="height: auto;/* margin: 6px; */width: 161px;/* opacity: 0.8; */border-radius: 68px;margin-left: auto;padding: 10px;margin-right: auto;/* box-shadow: 0px 0px 3px #444; */">
<div style="display: flex;flex-direction: column;flex-wrap: wrap;align-content: center;justify-content: center;">
<div>
<div style="font-size: 8px;"><center><i>Font Size: <span id="sizeValue">4px</span></i></center></div>
<div class="row upseg" style="min-height: 105px;margin-left: 0px;margin-right: 0px;">
<div id="textfeild" class="tooltip1" style="border-bottom:none;text-align: center;padding: 10px;max-width: 906px;">
<h2 id="one" class="box-shadow" style="font-size: 4px;display: inline-block;margin: 0px;padding: 5px;background: white;border: solid 1px red;"></h2>
<div class="left">
Read This Text
<i></i>
</div>
</div>
<div class="" style="margin: 10px 0px 10px 0px;text-align: center;">
<h2 class="timer" style="color: #293270";>3</h2>
</div>
</div>
</div>
<div style = "display: flex;flex-direction: row;justify-content: center;flex-wrap: wrap;align-content: center;">
<div class="changeWidthDyn" style="width: 20em;margin: 5px;margin-right: 10px;height: 21em;">
<div class="video-contain" style="height: 100%;">
<div id="buttons">
<center>
<button class="btnctrl btn btn-warning" onclick="startWebcam();">
Start WebCam
</button>
<button class="btnctrl btn btn-warning" onclick="stopWebcam();">
Stop WebCam
</button>
</center>
</div>
<video width="320" height="300" id="video" style="margin-right: auto;margin-left: auto;display: block;" autoplay></video>
</div>
</div>
<div style="display: none;width: 20em;height: 21em;position: relative;" class="output changeWidthDyn">
<div class="text-contain" style="position: absolute;z-index: 1;width: 100%;padding: 9px 19px 9px 19px;color: white;box-sizing: border-box;">
<h2 class="answerCorrect" style="font-size: 20px;float:left;"><span id="ageValue"></span></h2>
<h2 class="answerCorrect" style="font-size: 20px;float:right;"><span id="fontValue"></span></h2>
</div>
<canvas class="changeWidthDyn" id="sourceImage" style="width: 20em;height: 21em;position: absolute;z-index: 0;top: 0;"></canvas>
<div id="spinner" style="position: relative;margin-left: auto;top: 40%;margin-right: auto;width: 80px;">
<div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<pre id="responseArea" style="display:none;position: relative;z-index: 1;"></pre>
<div class="text-contain" style="position: absolute;z-index: 1;bottom: 30px;padding: 5px;box-sizing: border-box;width: 100%;text-align: center;">
<h2 id="answer" class="answerWrong" style="font-size: 20px;">Wait for Response!</h2>
</div>
</div>
</div>
</div>
<footer class="footer py-3" style="margin-top: 82px;position: sticky;">
<p style="text-align: center;margin-bottom:0px;">
Keep Your Camera half meter or 1meter to get good results
<br />
If not able to read the statement then stress the eyes and try to read
</p>
</footer>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script type="text/javascript" src="keys.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>