-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (63 loc) · 2.71 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
<!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>Digits Recongnizer AI</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="neuralnetwork.png" type="image/png">
</head>
<body>
<section id="prediction-section">
<article id="loading-area">
<img id="loading-image" src="loading.png" alt="loading">
</article>
<article id="config-area" class="area">
<aside>
<div class="scroller">
<label for="scale-input"><strong>Scale:</strong></label>
<div>
<input type="range" min="3" step="1" id="scale-input">
<button id="default-scale-btn" class="default-btn"></button>
<strong>(<span id="scale-label"></span>)</strong>
</div>
</div>
<div class="scroller">
<label for="line-width-input"><strong>Line Width:</strong></label>
<div>
<input type="range" min="1" max="4" step="0.1" id="line-width-input">
<button id="default-line-width-btn" class="default-btn"></button>
<strong>(<span id="line-width-label"></span>)</strong>
</div>
</div>
<div class="right">
<div>
<label for="multiple-draws-checkbox">Multiple Draws</label>
<input type="checkbox" id="multiple-draws-checkbox">
</div>
<div>
<label for="visualize-28x28-checkbox">Visualize as 28 by 28</label>
<input type="checkbox" id="visualize-28x28-checkbox" checked>
</div>
<div id="btn-group">
<button id="clear-btn" class="btn">Clear</button>
<button id="predict-btn" class="btn">Predict</button>
</div>
</div>
</aside>
</article>
<article id="input-area" class="area">
<aside>
<canvas id="canvas"></canvas>
</aside>
</article>
<article id="output-area" class="area">
<label id="digit-confidence-label">Digit Confidence:</label>
<ul id="probabilities"></ul>
</article>
</section>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.12.0/dist/tf.min.js"></script>
<script src="app.js" type="text/javascript"></script>
</body>
</html>