-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (74 loc) · 1.98 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>Document</title>
<script src='https://unpkg.com/[email protected]/dist/tesseract.min.js'></script>
<script src="http://nerdamer.com/js/nerdamer.core.js"></script>
</head>
<style>
body{
display: flex;
justify-content: center;
align-items: center;
font-family: Calibri;
flex-direction: column;
margin: 0 0 0 0;
}
.btn {
padding: 5px;
color: aqua;
background-color: black;
border: none;
}
h2 {
color: blue;
}
#header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
background-color: lightblue;
margin: 0;
padding: 0;
}
#header > h1 {
color: blue;
}
</style>
<body>
<div id="header">
<h1>Math<i>Gen</i></h1>
</div>
<div class="search">
<img id="output" src="" width="200" height="150"/>
<form class="form" id="myForm">
<input type="file" id="inpFile" onchange="loadFile(event)">
<button class="btn" type="submit">Upload File</button>
</form>
<button class="btn" onclick="detect();">Recognize</button>
<button class="btn" onclick="calc();">Calculate</button>
</div>
<div style="text-align: center;">
<h1><b>Equation</b></h1>
<h2 id="Result"></h2>
<h1><b>Result</b></h1>
<h2 id="text"></h2>
</div>
<script src="Files/file.js"></script>
<!--<script>
function detect() {
Tesseract.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'eng',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
alert(text);
})
}
</script>-->
</body>
</html>