-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (74 loc) · 2.72 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
<!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">
<link rel="shortcut icon" href="/favicon.jpeg">
<!-- Bootstrap CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="/digitRecognition.css">
<!-- Import TensorFlow.js -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<!-- Import tfjs-vis -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tfjs-vis.umd.min.js"></script>
<script src="/script.js" type="module"></script>
<title>Digit Recognition</title>
</head>
<body>
<div align="center">
<h1>Digit Recognition</h1>
<div class="d-flex justify-content-center">
<div class="canvasContent">
<h3 class="canvasText">Canvas</h3>
<canvas class="canvas"></canvas>
</div>
<div class="predictionContent">
<h3 class="predictionText">Prediction Result</h3>
<h1 class="result mt-4">0</h1>
</div>
</div>
<br>
<button class="btn btn-success predictButton">PREDICT</button>
<button class="btn btn-danger clearButton">CLEAR</button>
</div>
<h1>Note:</h1>
<ul>
<li>
<div>This is my first Neural Network project with web integration.</div>
</li>
<li>
<div>This is web app <b>does not</b> give <b>100%</b> accuracy. But works for some extent.</div>
</li>
<li>
<div>I had built this ML model using python and converted the model using tensorflow js library and then used the model in this app.</div>
</li>
<li>
<div>This was built for making me understand the Neural Network concept.</div>
</li>
</ul>
<h1>How to use this:</h1>
<ul>
<li>
<div>Draw a <b>Single Digit</b> number on Canvas.</div>
</li>
<li>
<div>Draw the digit at center of the Canvas for better Prediction.</div>
</li>
<li>
<div>Click on the Predict Button.</div>
</li>
<li>
<div>Wait for few Seconds.</div>
</li>
<li>
<div>Prediction result would be updated to the right side of the Canvas.</div>
</li>
<li>
<div>Use Clear button to clear the Canvas.</div>
</li>
</ul>
<br>
</body>
</html>